mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
log: remove relection tests for nil
This commit is contained in:
parent
b5abd6d127
commit
a6d10f4ba1
1 changed files with 1 additions and 1 deletions
|
|
@ -325,7 +325,7 @@ func formatJSONValue(value interface{}) interface{} {
|
||||||
|
|
||||||
// formatValue formats a value for serialization
|
// formatValue formats a value for serialization
|
||||||
func formatLogfmtValue(value interface{}, term bool) string {
|
func formatLogfmtValue(value interface{}, term bool) string {
|
||||||
if value == nil || (reflect.ValueOf(value).Kind() == reflect.Ptr && reflect.ValueOf(value).IsNil()) {
|
if value == nil {
|
||||||
return "nil"
|
return "nil"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue