Skip to content

Commit

Permalink
Rename typeFor to appTypeFor
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket committed Feb 26, 2021
1 parent a6d3430 commit 47b5645
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/display/clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (r *Renderer) ApplicationList(clients []*management.Client) {
}
res = append(res, &clientView{
Name: auth0.StringValue(c.Name),
Type: typeFor(c.AppType),
Type: appTypeFor(c.AppType),
ClientID: auth0.StringValue(c.ClientID),
ClientSecret: auth0.StringValue(c.ClientSecret),
Callbacks: callbacksFor(c.Callbacks),
Expand All @@ -80,7 +80,7 @@ func (r *Renderer) ApplicationCreate(client *management.Client, revealSecrets bo
v := &clientView{
revealSecret: revealSecrets,
Name: auth0.StringValue(client.Name),
Type: typeFor(client.AppType),
Type: appTypeFor(client.AppType),
ClientID: auth0.StringValue(client.ClientID),
ClientSecret: auth0.StringValue(client.ClientSecret),
Callbacks: callbacksFor(client.Callbacks),
Expand All @@ -97,7 +97,7 @@ func (r *Renderer) ApplicationUpdate(client *management.Client, revealSecrets bo
v := &clientView{
revealSecret: revealSecrets,
Name: auth0.StringValue(client.Name),
Type: typeFor(client.AppType),
Type: appTypeFor(client.AppType),
ClientID: auth0.StringValue(client.ClientID),
ClientSecret: auth0.StringValue(client.ClientSecret),
Callbacks: callbacksFor(client.Callbacks),
Expand All @@ -109,7 +109,7 @@ func (r *Renderer) ApplicationUpdate(client *management.Client, revealSecrets bo
// TODO(cyx): determine if there's a better way to filter this out.
const deprecatedAppName = "All Applications"

func typeFor(v *string) string {
func appTypeFor(v *string) string {
switch {
case v == nil:
return "generic"
Expand Down

0 comments on commit 47b5645

Please sign in to comment.