1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-03 03:36:22 -07:00

Use proper "Go-like" names for file modes

Try to create log dir if it doesn't exist
This commit is contained in:
Eggbertx 2024-05-17 10:57:23 -07:00
parent caea5ee77e
commit 3547b3117e
8 changed files with 26 additions and 23 deletions

View file

@ -114,7 +114,7 @@ func (gcfg *GochanConfig) Write() error {
// don't try to write anything if we're doing a test
return nil
}
return os.WriteFile(gcfg.jsonLocation, str, GC_FILE_MODE)
return os.WriteFile(gcfg.jsonLocation, str, NormalFileMode)
}
type SQLConfig struct {