Skip to content

Commit

Permalink
imp: remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
hedzr committed Mar 30, 2022
1 parent 4fbdd79 commit 4de3450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion withstackinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func (w *WithStackInfo) WithCause(cause error) Buildable {
// }
//
func (w *WithStackInfo) Defer(err *error) {
if !w.IsEmpty() || w.Code != OK {
if !w.IsEmpty() { // no inner errors attached into an error container, that assumed 'is empty'
*err = w
}
}
Expand Down

0 comments on commit 4de3450

Please sign in to comment.