fix lint error for gorush folder. (#275)

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2017-08-23 21:46:00 -05:00
committed by GitHub
parent acc83c1fa5
commit e070248a11
7 changed files with 33 additions and 20 deletions

View File

@@ -30,7 +30,10 @@ func TestWrongYAMLormat(t *testing.T) {
}
// clean up
defer os.Remove(filename)
defer func() {
err := os.Remove(filename)
assert.Nil(t, err)
}()
// parse JSON format error
_, err := LoadConfYaml(filename)