mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-21 05:44:39 -04:00
try to make lint happy
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
1 parent
4c53707920
commit
9d8072cda9
1 file changed
+3
-3
@@ -144,12 +144,12 @@ func backupOcisConfigFile(configPath string) (string, error) {
|
||||
|
||||
// CreateConfig creates a config file with random passwords at configPath
|
||||
func CreateConfig(insecure, forceOverwrite bool, configPath, adminPassword string) error {
|
||||
targetBackupConfig := ""
|
||||
|
||||
err := checkConfigPath(configPath)
|
||||
if err != nil && !forceOverwrite {
|
||||
return err
|
||||
} else if forceOverwrite && err != nil {
|
||||
}
|
||||
targetBackupConfig := ""
|
||||
if err != nil {
|
||||
targetBackupConfig, err = backupOcisConfigFile(configPath)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user