Skip to content

Commit f19d283

Browse files
committed
refactor: don't use aliases at all
1 parent 5654f9e commit f19d283

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/commands/force/org/display.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import * as os from 'os';
99
import { flags, FlagsConfig, SfdxCommand } from '@salesforce/command';
10-
import { Aliases, AuthInfo, Messages, sfdc } from '@salesforce/core';
10+
import { AuthInfo, Messages, sfdc } from '@salesforce/core';
1111

1212
import { OrgDisplayReturn, ScratchOrgFields } from '../../../shared/orgTypes';
1313
import { 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;

0 commit comments

Comments
 (0)