chore: Updating linter, fixing some new warnings (#88863)

This commit is contained in:
Dave Henderson
2024-06-06 13:01:27 -04:00
committed by GitHub
parent c9778c3332
commit e21d357d67
13 changed files with 106 additions and 923 deletions
+1 -1
View File
@@ -192,7 +192,7 @@ func (dbCfg *DatabaseConfig) buildConnectionString(cfg *setting.Cfg, features fe
if !filepath.IsAbs(dbCfg.Path) {
dbCfg.Path = filepath.Join(cfg.DataPath, dbCfg.Path)
}
if err := os.MkdirAll(path.Dir(dbCfg.Path), os.ModePerm); err != nil {
if err := os.MkdirAll(path.Dir(dbCfg.Path), 0o750); err != nil {
return err
}