Skip to content

Commit

Permalink
br: fix err overwrite (#39935)
Browse files Browse the repository at this point in the history
close #39934
  • Loading branch information
Leavrth authored Dec 14, 2022
1 parent bb50e33 commit e5c0b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion br/pkg/task/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,7 @@ func restoreStream(
return errors.Trace(err)
}
defer func() {
if err = restoreGc(); err != nil {
if err := restoreGc(); err != nil {
log.Error("failed to set gc enabled", zap.Error(err))
}
}()
Expand Down

0 comments on commit e5c0b6b

Please sign in to comment.