Skip to content

Commit

Permalink
test: ensure instance url is set
Browse files Browse the repository at this point in the history
  • Loading branch information
WillieRuemmele committed May 20, 2024
1 parent 0a2338f commit eaa972e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1603,10 +1603,10 @@ export class Connection<S extends Schema = Schema> extends EventEmitter {
process = new Process(this);

private isLightningInstance(): boolean {
return (
return (this.instanceUrl!==undefined && (
this.instanceUrl.includes('.lightning.force.com') ||
this.instanceUrl.includes('.lightning.crmforce.mil') ||
this.instanceUrl.includes('.lightning.sfcrmapps.cn')
this.instanceUrl.includes('.lightning.sfcrmapps.cn'))
);
}
}
Expand Down

0 comments on commit eaa972e

Please sign in to comment.