Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bodgit committed Jul 10, 2022
1 parent 5e49602 commit 5755575
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/rvz/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ import (

var (
version = "dev"
commit = "none"
date = "unknown"
commit = "none" //nolint:gochecknoglobals
date = "unknown" //nolint:gochecknoglobals
)

//nolint:gochecknoinits
func init() {
cli.VersionFlag = &cli.BoolFlag{
Name: "version",
Expand Down Expand Up @@ -60,7 +61,7 @@ func main() {
if err != nil {
return err
}
defer w.(io.Closer).Close()
defer w.(io.Closer).Close() //nolint:forcetypeassert
} else {
w = os.Stdout
}
Expand Down

0 comments on commit 5755575

Please sign in to comment.