Skip to content

Commit

Permalink
feat: Slightly simplify the CreateContentType functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobefu committed Dec 15, 2024
1 parent 803cb7f commit e6e3a04
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/cli/create-content-type.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package cli

import (
"errors"
"strings"

"github.com/Dobefu/csb/cmd/cli/utils"
"github.com/Dobefu/csb/cmd/cs_sdk/api"
Expand Down Expand Up @@ -48,7 +47,7 @@ func confirmName(name string) (string, error) {
return "", err
}

ctName = strings.ReplaceAll(val, "\n", "")
ctName = val
}

return ctName, nil
Expand All @@ -64,7 +63,7 @@ func confirmMachineName(name string) (string, error) {
return "", err
}

ctName = strings.ReplaceAll(val, "\n", "")
ctName = val
}

return ctName, nil
Expand Down

0 comments on commit e6e3a04

Please sign in to comment.