fix: add missing comment

This commit is contained in:
Jose Diaz-Gonzalez authored and Jose Diaz-Gonzalez committed 2020-11-21 20:57:33 -05:00
1 parent 3714a231a9
commit 947b2d4db6
1 file changed
+1
+1
View File
@@ -170,6 +170,7 @@ func SetPermissions(path string, fileMode os.FileMode) error {
return os.Chown(path, uid, gid) return os.Chown(path, uid, gid)
} }
// WriteSliceToFile writes a slice of strings to a file
func WriteSliceToFile(filename string, lines []string) error { func WriteSliceToFile(filename string, lines []string) error {
file, err := os.OpenFile(filename, os.O_RDWR|os.O_TRUNC, 0600) file, err := os.OpenFile(filename, os.O_RDWR|os.O_TRUNC, 0600)
if err != nil { if err != nil {