Skip to content

Commit

Permalink
update runtime/CloseWithErrCapture comment (#6952)
Browse files Browse the repository at this point in the history
* update runtime/CloseWithErrCapture comment

Signed-off-by: Sagnik Das <[email protected]>

* fix lint

Signed-off-by: Sagnik Das <[email protected]>

---------

Signed-off-by: Sagnik Das <[email protected]>
  • Loading branch information
sagnik3788 authored Dec 3, 2023
1 parent e78091b commit 7f734b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/runutil/runutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ func ExhaustCloseWithLogOnErr(logger log.Logger, r io.ReadCloser, format string,
CloseWithLogOnErr(logger, r, format, a...)
}

// CloseWithErrCapture runs function and on error return error by argument including the given error (usually
// from caller function).
// CloseWithErrCapture closes closer, wraps any error with message from fmt and args, and stores this in err.
func CloseWithErrCapture(err *error, closer io.Closer, format string, a ...interface{}) {
merr := errutil.MultiError{}

Expand Down

0 comments on commit 7f734b9

Please sign in to comment.