Fix double negatives in migration errors

This commit is contained in:
William Martin 2023-11-15 13:02:08 +01:00
parent 06c36a74c2
commit a00294eff9

View file

@ -122,11 +122,11 @@ func (m MultiAccount) Do(c *config.Config) error {
}
if err := migrateConfig(c, hostname, username); err != nil {
return CowardlyRefusalError{fmt.Errorf("couldn't not migrate config for %q: %w", hostname, err)}
return CowardlyRefusalError{fmt.Errorf("couldn't migrate config for %q: %w", hostname, err)}
}
if err := migrateToken(hostname, username, tokenSource); err != nil {
return CowardlyRefusalError{fmt.Errorf("couldn't not migrate oauth token for %q: %w", hostname, err)}
return CowardlyRefusalError{fmt.Errorf("couldn't migrate oauth token for %q: %w", hostname, err)}
}
}