mirror of
https://github.com/lxc/incus
synced 2026-08-02 05:26:46 +00:00
shared/cliconfig: Remove duplicate file closing
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
This commit is contained in:
parent
dcac6a1e51
commit
f830526711
@ -175,10 +175,5 @@ func (c *Config) SaveConfig(path string) error {
|
||||
return fmt.Errorf("Unable to write the configuration: %w", err)
|
||||
}
|
||||
|
||||
err = f.Close()
|
||||
if err != nil {
|
||||
return fmt.Errorf("Unable to close the configuration file: %w", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user