modify static check

fix format
This commit is contained in:
lala123912
2020-09-23 14:32:56 +08:00
parent b03a4ac626
commit 7594702b22
14 changed files with 87 additions and 94 deletions

View File

@@ -304,10 +304,7 @@ func TestGetFileType(t *testing.T) {
}
func isOperationNotPermittedError(err error) bool {
if strings.Contains(err.Error(), "Operation not permitted") {
return true
}
return false
return strings.Contains(err.Error(), "Operation not permitted")
}
func writeFile(content string) (string, string, error) {