fix(lint): Start to apply linter recommandation
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Matthieu 'JP' DERASSE
2022-08-02 20:33:47 +00:00
parent 5434cc15ce
commit 1d7730c078
19 changed files with 82 additions and 82 deletions

View File

@ -90,17 +90,17 @@ func runInitAction(cmd *cobra.Command, args []string) {
}
// ask which API type we want to use
var possibleApiTypes []string
for _, apiType := range models.GetListOfApiTypeName() {
possibleApiTypes = append(possibleApiTypes, string(apiType))
var possibleAPITypes []string
for _, apiType := range models.GetListOfAPITypeName() {
possibleAPITypes = append(possibleAPITypes, string(apiType))
}
log.Infof("Which kind of API do you want to init (possible values: %s)", strings.Join(possibleApiTypes, ", "))
apiTypeName := helpers.ApiTypeNameInput()
log.Infof("Which kind of API do you want to init (possible values: %s)", strings.Join(possibleAPITypes, ", "))
apiTypeName := helpers.APITypeNameInput()
log.Debugf("Using api type : %s", string(apiTypeName))
apiType, err := api_types.GetApiType(apiTypeName)
apiType, err := api_types.GetAPIType(apiTypeName)
if err != nil {
log.Error("Impossible to load that API Type generator")
}