Skip to content

Commit

Permalink
chore: linter update
Browse files Browse the repository at this point in the history
  • Loading branch information
carlmontanari committed Sep 9, 2024
1 parent 5e86d76 commit 7262aad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ linters:
enable:
- asciicheck
- bodyclose
- copyloopvar
- decorder
- dogsled
- dupl
Expand All @@ -36,7 +37,6 @@ linters:
- errchkjson
- errname
- exhaustive
- exportloopref
- forbidigo
- forcetypeassert
- funlen
Expand Down
2 changes: 1 addition & 1 deletion driver/netconf/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (d *Driver) buildCommitElem(confirmed bool, timeout uint, persist, persistI
}

if timeout > 0 {
commitElem.ConfirmedTimeout = strconv.Itoa(int(timeout))
commitElem.ConfirmedTimeout = strconv.Itoa(int(timeout)) //nolint:gosec
}

netconfInput := d.buildPayload(commitElem)
Expand Down
5 changes: 3 additions & 2 deletions transport/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ func (t *System) open(a *Args) error {
t.fd, err = pty.StartWithSize(
t.c,
&pty.Winsize{
Rows: uint16(a.TermHeight),
Cols: uint16(a.TermWidth),
// ignoring linters we know these will fit in uint16
Rows: uint16(a.TermHeight), //nolint:gosec
Cols: uint16(a.TermWidth), //nolint:gosec
},
)
if err != nil {
Expand Down

0 comments on commit 7262aad

Please sign in to comment.