diff options
| author | Joseph Richey <joerichey94@gmail.com> | 2018-02-11 23:56:49 -0800 |
|---|---|---|
| committer | Joseph Richey <joerichey94@gmail.com> | 2018-02-11 23:56:49 -0800 |
| commit | 69630f37fcebe894b15872148bd8b2496806b60c (patch) | |
| tree | 1ae1ed02acba2c9beef4a81652d5594c67cf60e6 /pam_fscrypt/run_fscrypt.go | |
| parent | 1f508cc30f3c1caadea5c648158880eacfe9b113 (diff) | |
vet: eliminate unnecessary shadowing
Running "go vet -shadow ./..." finds all places where a variable might
be incorrectly or unnecessarily shadowed. This fixes some of them.
Diffstat (limited to 'pam_fscrypt/run_fscrypt.go')
| -rw-r--r-- | pam_fscrypt/run_fscrypt.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pam_fscrypt/run_fscrypt.go b/pam_fscrypt/run_fscrypt.go index 6414d99..da336df 100644 --- a/pam_fscrypt/run_fscrypt.go +++ b/pam_fscrypt/run_fscrypt.go @@ -199,7 +199,7 @@ func AdjustCount(handle *pam.Handle, delta int) (int, error) { if err != nil { return 0, err } - if err := unix.Flock(int(file.Fd()), unix.LOCK_EX); err != nil { + if err = unix.Flock(int(file.Fd()), unix.LOCK_EX); err != nil { return 0, err } defer file.Close() |