Skip to content

Commit

Permalink
null coalescing
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr PG Gajek <[email protected]>
  • Loading branch information
pgajek2 committed Feb 19, 2024
1 parent a437927 commit 726a7cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .forceignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**/jsconfig.json

**/.eslintrc.json
2 changes: 1 addition & 1 deletion force-app/main/default/classes/SOQL.cls
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ public virtual inherited sharing class SOQL implements Queryable {
}

private String formattedString(String value) {
return value == null ? value : value.trim();
return value ?? value.trim();
}

public Filter isIn(Iterable<Object> iterable) {
Expand Down

0 comments on commit 726a7cc

Please sign in to comment.