File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 77
88import * as os from 'os' ;
99import { flags , FlagsConfig , SfdxCommand } from '@salesforce/command' ;
10- import { Aliases , AuthInfo , Messages , sfdc } from '@salesforce/core' ;
10+ import { AuthInfo , Messages , sfdc } from '@salesforce/core' ;
1111
1212import { OrgDisplayReturn , ScratchOrgFields } from '../../../shared/orgTypes' ;
1313import { getAliasByUsername , camelCaseToTitleCase } from '../../../shared/utils' ;
@@ -28,8 +28,7 @@ export class OrgDisplayCommand extends SfdxCommand {
2828
2929 public async run ( ) : Promise < OrgDisplayReturn > {
3030 // translate to alias if necessary
31- const username = ( await Aliases . fetch ( this . org . getUsername ( ) ) ) ?? this . org . getUsername ( ) ;
32- const authInfo = await AuthInfo . create ( { username } ) ;
31+ const authInfo = await AuthInfo . create ( { username : this . org . getUsername ( ) } ) ;
3332 const fields = authInfo . getFields ( true ) ;
3433
3534 const isScratchOrg = fields . devHubUsername ;
You can’t perform that action at this time.
0 commit comments