style(internal/*): fix lint issues

This commit is contained in:
Nightapes
2019-07-21 15:15:01 +02:00
parent 409b260eb7
commit 58f2ebb6d0
2 changed files with 5 additions and 6 deletions

View File

@@ -25,7 +25,8 @@ func TestReadCacheInvalidContent(t *testing.T) {
completePath := path.Join(path.Dir(dir), ".version")
brokenContent := []byte("hello broken\ngo: lang\n")
ioutil.WriteFile(completePath, brokenContent, 0644)
err = ioutil.WriteFile(completePath, brokenContent, 0644)
assert.NoError(t, err)
_, readError := cache.Read(dir)
assert.Errorf(t, readError, "Should give error, when broken content")