fix lint
This commit is contained in:
parent
411f561db6
commit
b68eed906a
@ -101,9 +101,8 @@ func ReadBackup(r io.Reader, cb func(key datastore.Key, value []byte, log bool)
|
|||||||
if os.Getenv("LOTUS_ALLOW_TRUNCATED_LOG") == "1" {
|
if os.Getenv("LOTUS_ALLOW_TRUNCATED_LOG") == "1" {
|
||||||
log.Errorw("log entry potentially truncated")
|
log.Errorw("log entry potentially truncated")
|
||||||
return false, nil
|
return false, nil
|
||||||
} else {
|
|
||||||
return false, xerrors.Errorf("log entry potentially truncated, set LOTUS_ALLOW_TRUNCATED_LOG=1 to proceed: %w", err)
|
|
||||||
}
|
}
|
||||||
|
return false, xerrors.Errorf("log entry potentially truncated, set LOTUS_ALLOW_TRUNCATED_LOG=1 to proceed: %w", err)
|
||||||
default:
|
default:
|
||||||
return false, xerrors.Errorf("unmarshaling log entry: %w", err)
|
return false, xerrors.Errorf("unmarshaling log entry: %w", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user