Use defined variable instead of internal property

This commit is contained in:
Sam Riddle 2023-03-30 09:03:28 -07:00 committed by GitHub
parent 9ab7b1477a
commit 8ae46c4ec3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,7 +114,7 @@ export class TerminalProfileService implements ITerminalProfileService {
// IMPORTANT: Only allow the default profile name to find non-auto detected profiles as
// to avoid unsafe path profiles being picked up.
return this.availableProfiles.find(e => e.profileName === this._defaultProfileName && !e.isAutoDetected);
return this.availableProfiles.find(e => e.profileName === defaultProfileName && !e.isAutoDetected);
}
private _getOsKey(os: OperatingSystem): string {