Manager: Fix logic error detecting first-time run
If the config file is missing, `true` should be returned.
This commit is contained in:
parent
8719103462
commit
8b494dc448
@ -32,7 +32,7 @@ func (s *Service) IsFirstRun() (bool, error) {
|
||||
switch {
|
||||
case errors.Is(err, fs.ErrNotExist):
|
||||
// No configuration means first run.
|
||||
return false, nil
|
||||
return true, nil
|
||||
case err != nil:
|
||||
return false, fmt.Errorf("loading %s: %w", configFilename, err)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user