Skip to content

Commit

Permalink
temporary nolint:errcheck directives
Browse files Browse the repository at this point in the history
  • Loading branch information
abe-winter committed Jan 22, 2024
1 parent 9b0f0d0 commit 1eb025d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gostream/codec/h264/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func NewEncoder(width, height, keyFrameInterval int, logger golog.Logger) (codec
}

if h.frame = avutil.FrameAlloc(); h.frame == nil {
h.Close()
h.Close() //nolint:errcheck
return nil, errors.New("cannot alloc frame")
}

Expand Down
2 changes: 1 addition & 1 deletion gostream/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (bs *basicStream) Stop() {
bs.audioEncoder.Close()
}
if bs.videoEncoder != nil {
bs.videoEncoder.Close()
bs.videoEncoder.Close() //nolint:gosec,errcheck
}

// reset
Expand Down

0 comments on commit 1eb025d

Please sign in to comment.