Commit Graph

5 Commits

Author SHA1 Message Date
Masih H. Derkani
597b8983b0
Address staticcheck issues
Fix `staticcheck` issues:
- S1028 use `fmt.Errorf` to construct formatted errors
- ST1017 yoda conditions
- ST1005 error message capitalization
- ST1006 avoid `self` as receiver name
- S1030 use `buf.String`
- S1011 avoid redundant loop when `append` suffices
- SA4006 unused value
- S1019 remove redundant capacity on `make` call
- SA2002 `t.Fatal` called outside of test

Exported error violates ST1012, which is ignored by this PR since rename may cause breaking changes.

Remove redundant parentheses wrapping, and use CamelCase naming while at it.
2021-07-19 16:53:28 +01:00
JT Olds
42391d89a5 add license
Change-Id: I4642fb9b97256ec6b3ffbe403272efc690bf1606
2014-05-09 15:38:13 -06:00
Andrew Harding
1748ac5391 space monkey internal commit export
[katamari commit: 3fd2f40f50e175aaea2666553ce083378a56ade0]
2014-04-07 20:59:49 +00:00
Jeff Wendling
fa8eb6a573 space monkey internal commit export
[katamari commit: 9bd04d1d78e85304589695c66e328d23128f509c]
2014-02-25 19:01:49 +00:00
JT Olds
053d794fe5 space monkey internal commit export
[katamari commit: 66d3bf715795d3696ca37003fba5dba1af7ffacf]
2014-01-20 19:29:56 +00:00