Skip to content

Releases: gostaticanalysis/nilerr

v0.1.1: Update modules and go.mod go version to 1.15

26 Oct 01:00
7a8ff9e
Compare
Choose a tag to compare
  • Update modules (Thanks @masa213f)
  • Update go.mod go version to 1.15

v0.1.0: Support 'handle error once' idiom

19 Oct 00:30
e054c31
Compare
Choose a tag to compare

#4 by @PeterIvanov (Thanks!! 🎉 )

  • if err is used as an argument in a function call, it is not considered a mistake to return nil
  • such uses with .Error() and with non-err or vararg parameters are also supported
  • a line number is added to waning text, because in some cases the offending error assignment is not that easy to find
  • multiple possible assignments are supported - for example, if err is checked and then overwritten in a loop
  • after a negative err check, warning is not issued if there are other conditions in if statement
  • added support for multiple error return values

First release

04 Jun 14:46
f11a0a4
Compare
Choose a tag to compare
Merge pull request #3 from gostaticanalysis/improve-readme2

Improve README.md