mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
Correct ioutil.WriteFile comment about os.Create (#4864)
Correct incorrect comment introduced in #2660
This commit is contained in:
@@ -294,7 +294,8 @@ func write(filePath string, fi *FileIndex) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
// 0600 is the mask used when a file is created using os.Create hence defaulting
|
||||
// While 0666 is the mask used when a file is created using os.Create,
|
||||
// gosec objects, so use 0600 instead
|
||||
return ioutil.WriteFile(filePath, jsonData, 0600)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user