diff --git a/lib/backupds/read.go b/lib/backupds/read.go index 33a54e22f..a44442af1 100644 --- a/lib/backupds/read.go +++ b/lib/backupds/read.go @@ -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" { log.Errorw("log entry potentially truncated") 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: return false, xerrors.Errorf("unmarshaling log entry: %w", err) }