@@ -129,20 +129,20 @@ func (apps *TeamApps) IsEmpty() bool {
129129// Basically, treat as a convenience getter intended for use in the context where
130130// you have a team you want to filter against and you don't care whether it's an
131131// auth or an app that corresponds. E.g. when you are comparing to --team flags
132- func (t * TeamApps ) authOrAppTeamDomain () string {
133- if t .Auth .TeamDomain != "" && (t .Auth .TeamID == t .Hosted .App .TeamID || t .Auth .TeamID == t .Local .App .TeamID ) {
132+ func (apps * TeamApps ) authOrAppTeamDomain () string {
133+ if apps .Auth .TeamDomain != "" && (apps .Auth .TeamID == apps .Hosted .App .TeamID || apps .Auth .TeamID == apps .Local .App .TeamID ) {
134134 // Auth whose team id matches either hosted or local app's team
135135 // Can be safely returned
136- return t .Auth .TeamDomain
136+ return apps .Auth .TeamDomain
137137 }
138138
139139 // If we get here we might be missing an auth OR the auth doesn't
140140 // match any included app team ids (that is the case when the auth is org
141141 // resolved for a workspace app)
142- if t .Hosted .App .TeamID != "" {
143- return t .Hosted .App .TeamDomain
142+ if apps .Hosted .App .TeamID != "" {
143+ return apps .Hosted .App .TeamDomain
144144 }
145- return t .Local .App .TeamDomain
145+ return apps .Local .App .TeamDomain
146146}
147147
148148// authOrAppTeamID greedily returns a team ID corresponding to the TeamApps
@@ -157,14 +157,14 @@ func (t *TeamApps) authOrAppTeamDomain() string {
157157// Basically, treat as a convenience getter intended for use in the context where
158158// you have a team you want to filter against and you don't care whether it's an
159159// auth or an app that corresponds. E.g. when you are comparing to --team flags
160- func (t * TeamApps ) authOrAppTeamID () string {
161- if t .Auth .TeamID != "" && (t .Hosted .App .TeamID == t .Auth .TeamID || t .Local .App .TeamID == t .Auth .TeamID ) {
162- return t .Auth .TeamID
160+ func (apps * TeamApps ) authOrAppTeamID () string {
161+ if apps .Auth .TeamID != "" && (apps .Hosted .App .TeamID == apps .Auth .TeamID || apps .Local .App .TeamID == apps .Auth .TeamID ) {
162+ return apps .Auth .TeamID
163163 }
164- if t .Hosted .App .TeamID != "" {
165- return t .Hosted .App .TeamID
164+ if apps .Hosted .App .TeamID != "" {
165+ return apps .Hosted .App .TeamID
166166 }
167- return t .Local .App .TeamID
167+ return apps .Local .App .TeamID
168168}
169169
170170// appTransferDisclaimer contains a notice of lost app management permissions
0 commit comments