Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix staticcheck errors #15

Merged
merged 1 commit into from
Jan 3, 2019
Merged

Conversation

tklauser
Copy link
Contributor

@tklauser tklauser commented Jan 3, 2019

Fix the following staticcheck errors:

api/api.go:85:5: should write progRules := server.rules[p] instead of progRules, _ := server.rules[p] (S1005)
proc/proc.go:414:2: should use 'return ' instead of 'if { return }; return ' (S1008)
proc/proc_test.go:9:3: field name is unused (U1000)
proc/proc_test.go:173:3: field name is unused (U1000)
proc/proc_test.go:323:3: field name is unused (U1000)
proc/proc_test.go:435:3: field name is unused (U1000)

Signed-off-by: Tobias Klauser tklauser@distanz.ch

Fix the following staticcheck errors:

  api/api.go:85:5: should write progRules := server.rules[p] instead of progRules, _ := server.rules[p] (S1005)
  proc/proc.go:414:2: should use 'return <expr>' instead of 'if <expr> { return <bool> }; return <bool>' (S1008)
  proc/proc_test.go:9:3: field name is unused (U1000)
  proc/proc_test.go:173:3: field name is unused (U1000)
  proc/proc_test.go:323:3: field name is unused (U1000)
  proc/proc_test.go:435:3: field name is unused (U1000)

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
@jessfraz
Copy link
Collaborator

jessfraz commented Jan 3, 2019

thanks!!

@jessfraz jessfraz merged commit a4bfa5e into genuinetools:master Jan 3, 2019
@tklauser tklauser deleted the staticcheck-fix branch January 3, 2019 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants