Merge branch 'master' into incorrect-datetime-1970

This commit is contained in:
Shlomi Noach 2018-05-15 12:12:18 +03:00 committed by GitHub
commit 7821582693
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,10 +40,9 @@ func FileExists(fileName string) bool {
func TouchFile(fileName string) error { func TouchFile(fileName string) error {
f, err := os.OpenFile(fileName, os.O_APPEND|os.O_CREATE, 0755) f, err := os.OpenFile(fileName, os.O_APPEND|os.O_CREATE, 0755)
if err != nil { if err != nil {
return (err) return err
} }
defer f.Close() return f.Close()
return nil
} }
// StringContainsAll returns true if `s` contains all non empty given `substrings` // StringContainsAll returns true if `s` contains all non empty given `substrings`