We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7d3514b + ffc9583 commit 7821582Copy full SHA for 7821582
1 file changed
go/base/utils.go
@@ -40,10 +40,9 @@ func FileExists(fileName string) bool {
40
func TouchFile(fileName string) error {
41
f, err := os.OpenFile(fileName, os.O_APPEND|os.O_CREATE, 0755)
42
if err != nil {
43
- return (err)
+ return err
44
}
45
- defer f.Close()
46
- return nil
+ return f.Close()
47
48
49
// StringContainsAll returns true if `s` contains all non empty given `substrings`
0 commit comments