diff --git a/app/internal/repository/settings/file.go b/app/internal/repository/settings/file.go index 8ee1023b..83a59def 100644 --- a/app/internal/repository/settings/file.go +++ b/app/internal/repository/settings/file.go @@ -58,6 +58,11 @@ func FromPath(directory string) (*File, error) { DirPath: directory, Name: "settings.json", } - err := file.Read() - return &file, err + if file.Read() != nil { + err := file.Write() + if err != nil { + return nil, err + } + } + return &file, nil }