Update internal/app/initializer.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Robin Olsen
2026-02-28 23:42:26 +01:00
committed by GitHub
parent 44fe0e8c46
commit 027de55d6a

View File

@@ -15,9 +15,14 @@ type InteractiveInitializer struct{}
func (i InteractiveInitializer) Init(path string) error { func (i InteractiveInitializer) Init(path string) error {
_, err := os.Stat(path) _, err := os.Stat(path)
if !os.IsNotExist(err) { if err == nil {
// Path exists; assume already initialized.
return nil return nil
} }
if !os.IsNotExist(err) {
// Some other filesystem error; propagate it to the caller.
return err
}
var initialize bool var initialize bool