Apply all golangci-lint fixes

This commit is contained in:
Marc Di Luzio 2020-07-06 18:04:10 +01:00
parent 945b3299ac
commit 75910efbe5
8 changed files with 19 additions and 22 deletions

View file

@ -3,10 +3,12 @@ package main
import (
"flag"
"testing"
"github.com/stretchr/testify/assert"
)
func Test_InnerMain_Version(t *testing.T) {
flag.Set("version", "1")
assert.NoError(t, flag.Set("version", "1"))
InnerMain()
flag.Set("version", "0")
assert.NoError(t, flag.Set("version", "0"))
}