Skip to content

Commit

Permalink
fix err overwrite
Browse files Browse the repository at this point in the history
Signed-off-by: Leavrth <jianjun.liao@outlook.com>
  • Loading branch information
Leavrth committed Dec 14, 2022
1 parent d2eca72 commit 4455de5
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 4455de5

Please sign in to comment.