Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ilharp committed Oct 6, 2022
1 parent 141a9b4 commit e022c1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/util/killdren/killdren_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
package killdren

import (
"errors"
"os"
"os/exec"
"syscall"
Expand Down Expand Up @@ -31,7 +32,7 @@ func Stop(cmd *exec.Cmd) error {
return err
}
r1, _, err := f.Call(uintptr(pid))
if r1 == 0 && err != syscall.ERROR_ACCESS_DENIED {
if r1 == 0 && !errors.Is(err, syscall.ERROR_ACCESS_DENIED) {
return err
}

Expand All @@ -55,6 +56,7 @@ func Stop(cmd *exec.Cmd) error {
if r1 == 0 {
return err
}

return nil
}

Expand Down
1 change: 1 addition & 0 deletions packages/unfold/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//nolint:typecheck
package main

import (
Expand Down

0 comments on commit e022c1c

Please sign in to comment.