Update internal/app/initializer.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user