File tree Expand file tree Collapse file tree
extensions/mattermost/src/mattermost Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -184,17 +184,17 @@ export function inspectMattermostAccount(params: {
184184 const botToken = tokenInspection . botToken ?? envToken ;
185185 const botTokenSource : MattermostTokenSource = tokenInspection . botToken
186186 ? "config"
187- : tokenInspection . botTokenStatus === "configured_unavailable"
188- ? "config "
189- : envToken
190- ? "env "
187+ : envToken
188+ ? "env "
189+ : tokenInspection . botTokenStatus === "configured_unavailable"
190+ ? "config "
191191 : "none" ;
192192 const botTokenStatus : MattermostCredentialStatus = tokenInspection . botToken
193193 ? "available"
194- : tokenInspection . botTokenStatus === "configured_unavailable"
195- ? "configured_unavailable "
196- : envToken
197- ? "available "
194+ : envToken
195+ ? "available "
196+ : tokenInspection . botTokenStatus === "configured_unavailable"
197+ ? "configured_unavailable "
198198 : "missing" ;
199199 const baseUrl = normalizeMattermostBaseUrl ( configUrl || envUrl ) ;
200200 const baseUrlSource : MattermostBaseUrlSource = configUrl ? "config" : envUrl ? "env" : "none" ;
You can’t perform that action at this time.
0 commit comments