Skip to content

Commit

Permalink
fix: remove another redundant condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Jan 4, 2021
1 parent e0c366a commit 021ff2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export class Connection extends JSForceConnection {
}
if (result.totalSize > 1) {
throw new SfdxError(
options.returnChoicesOnMultiple && options.choiceField
options.returnChoicesOnMultiple
? `Multiple records found. ${result.records.map((item) => item[options.choiceField as keyof T]).join(',')}`
: 'The query returned more than 1 record',
SingleRecordQueryErrors.MultipleRecords
Expand Down

0 comments on commit 021ff2d

Please sign in to comment.