Skip to content

Commit c50ecb1

Browse files
author
Nicholas Thomson
committed
Remove ServiceAliasClean
1 parent 0c14d9f commit c50ecb1

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

pkg/model/model.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -695,18 +695,12 @@ func (m *Model) GetConfig() *ackgenconfig.Config {
695695
// APIGroup returns the normalized Kubernetes APIGroup for the AWS service API,
696696
// e.g. "sns.services.k8s.aws"
697697
func (m *Model) APIGroup() string {
698-
serviceID := m.serviceAlias
698+
serviceAlias := m.serviceAlias
699699
suffix := "services.k8s.aws"
700700
if m.SDKAPI.apiGroupSuffix != "" {
701701
suffix = m.SDKAPI.apiGroupSuffix
702702
}
703-
return fmt.Sprintf("%s.%s", serviceID, suffix)
704-
}
705-
706-
// ServiceAliasClean returns a lowercased, whitespace-stripped ServiceID
707-
func (m *Model) ServiceAliasClean() string {
708-
serviceID := strings.ToLower(m.serviceAlias)
709-
return strings.Replace(serviceID, " ", "", -1)
703+
return fmt.Sprintf("%s.%s", serviceAlias, suffix)
710704
}
711705

712706
// New returns a new Model struct for a supplied API model.

0 commit comments

Comments
 (0)