Skip to content

Commit

Permalink
br: fix err overwrite (#39935) (#39937)
Browse files Browse the repository at this point in the history
close #39934
  • Loading branch information
ti-chi-bot committed Dec 14, 2022
1 parent 5cdc753 commit 582f747
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 582f747

Please sign in to comment.