Skip to content

Commit 47b5645

Browse files
committed
Rename typeFor to appTypeFor
1 parent a6d3430 commit 47b5645

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/display/clients.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (r *Renderer) ApplicationList(clients []*management.Client) {
6262
}
6363
res = append(res, &clientView{
6464
Name: auth0.StringValue(c.Name),
65-
Type: typeFor(c.AppType),
65+
Type: appTypeFor(c.AppType),
6666
ClientID: auth0.StringValue(c.ClientID),
6767
ClientSecret: auth0.StringValue(c.ClientSecret),
6868
Callbacks: callbacksFor(c.Callbacks),
@@ -80,7 +80,7 @@ func (r *Renderer) ApplicationCreate(client *management.Client, revealSecrets bo
8080
v := &clientView{
8181
revealSecret: revealSecrets,
8282
Name: auth0.StringValue(client.Name),
83-
Type: typeFor(client.AppType),
83+
Type: appTypeFor(client.AppType),
8484
ClientID: auth0.StringValue(client.ClientID),
8585
ClientSecret: auth0.StringValue(client.ClientSecret),
8686
Callbacks: callbacksFor(client.Callbacks),
@@ -97,7 +97,7 @@ func (r *Renderer) ApplicationUpdate(client *management.Client, revealSecrets bo
9797
v := &clientView{
9898
revealSecret: revealSecrets,
9999
Name: auth0.StringValue(client.Name),
100-
Type: typeFor(client.AppType),
100+
Type: appTypeFor(client.AppType),
101101
ClientID: auth0.StringValue(client.ClientID),
102102
ClientSecret: auth0.StringValue(client.ClientSecret),
103103
Callbacks: callbacksFor(client.Callbacks),
@@ -109,7 +109,7 @@ func (r *Renderer) ApplicationUpdate(client *management.Client, revealSecrets bo
109109
// TODO(cyx): determine if there's a better way to filter this out.
110110
const deprecatedAppName = "All Applications"
111111

112-
func typeFor(v *string) string {
112+
func appTypeFor(v *string) string {
113113
switch {
114114
case v == nil:
115115
return "generic"

0 commit comments

Comments
 (0)