Skip to content

Commit

Permalink
Add nolint directive to deferred call
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli committed Jan 31, 2022
1 parent fc03763 commit f7cf3b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion termenv_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func termStatusReport(sequence int) (string, error) {
if err != nil {
return "", ErrStatusReport
}
defer unix.IoctlSetTermios(unix.Stdout, tcsetattr, t)
defer unix.IoctlSetTermios(unix.Stdout, tcsetattr, t) //nolint:errcheck

noecho := *t
noecho.Lflag = noecho.Lflag &^ unix.ECHO
Expand Down

0 comments on commit f7cf3b4

Please sign in to comment.