summaryrefslogtreecommitdiffstats
path: root/modules/doctor/paths.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/doctor/paths.go')
-rw-r--r--modules/doctor/paths.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/doctor/paths.go b/modules/doctor/paths.go
index 623df863cb..22c095c227 100644
--- a/modules/doctor/paths.go
+++ b/modules/doctor/paths.go
@@ -27,7 +27,7 @@ func checkConfigurationFile(logger log.Logger, autofix bool, fileOpts configurat
fi, err := os.Stat(fileOpts.Path)
if err != nil {
if os.IsNotExist(err) && autofix && fileOpts.IsDirectory {
- if err := os.MkdirAll(fileOpts.Path, 0777); err != nil {
+ if err := os.MkdirAll(fileOpts.Path, 0o777); err != nil {
logger.Error(" Directory does not exist and could not be created. ERROR: %v", err)
return fmt.Errorf("Configuration directory: \"%q\" does not exist and could not be created. ERROR: %v", fileOpts.Path, err)
}