style(GenerateDefaultConfigs.go): Removed unnecessary brackets

This commit is contained in:
netbenix 2022-02-19 19:17:42 +01:00
parent 89ca38a8f0
commit 527487c0f3

View file

@ -36,14 +36,10 @@ func GenerateNewConfigsCommand() *cli.Command {
fmt.Scanf("%d", &inputInt) fmt.Scanf("%d", &inputInt)
switch inputInt { switch inputInt {
case 0: case 0:
{ sqlConfig.SqlType = "mariadb"
sqlConfig.SqlType = "mariadb"
}
default: default:
{ fmt.Printf("Invalid input!")
fmt.Printf("Invalid input!") os.Exit(1)
os.Exit(1)
}
} }
fmt.Printf("\n\nSQL Address: ") fmt.Printf("\n\nSQL Address: ")
@ -71,10 +67,9 @@ func GenerateNewConfigsCommand() *cli.Command {
fmt.Scanf("%d", &inputInt) fmt.Scanf("%d", &inputInt)
switch inputInt { switch inputInt {
case 0: case 0:
{ fmt.Printf("Reminder: remoteStorageType = none\n")
fmt.Printf("Reminder: remoteStorageType = none\n") //Do (nearly) nothing! :D
//Do (nearly) nothing! :D
}
case 1: case 1:
{ {
var azure Tools.AzureConfig var azure Tools.AzureConfig
@ -89,10 +84,8 @@ func GenerateNewConfigsCommand() *cli.Command {
fmt.Printf("Reminder: remoteStorageType = azure-file\n") fmt.Printf("Reminder: remoteStorageType = azure-file\n")
} }
default: default:
{ fmt.Printf("Invalid input!")
fmt.Printf("Invalid input!") os.Exit(1)
os.Exit(1)
}
} }
Tools.GenerateBaseConfig() Tools.GenerateBaseConfig()