mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
format nil big.Int values as 'nil' instead of '<nil>'
This commit is contained in:
parent
d960dc8fa7
commit
c5cd6fe922
1 changed files with 2 additions and 2 deletions
|
|
@ -166,7 +166,7 @@ func FormatLogfmtValue(value interface{}, term bool) string {
|
|||
// Big ints get consumed by the Stringer clause, so we need to handle
|
||||
// them earlier on.
|
||||
if v == nil {
|
||||
return "<nil>"
|
||||
return "nil"
|
||||
}
|
||||
return formatLogfmtBigInt(v)
|
||||
|
||||
|
|
@ -174,7 +174,7 @@ func FormatLogfmtValue(value interface{}, term bool) string {
|
|||
// Uint256s get consumed by the Stringer clause, so we need to handle
|
||||
// them earlier on.
|
||||
if v == nil {
|
||||
return "<nil>"
|
||||
return "nil"
|
||||
}
|
||||
return formatLogfmtUint256(v)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue