From 726a7cc641014bbc9a3259dd5ae5a8a63ba483d3 Mon Sep 17 00:00:00 2001 From: Piotr PG Gajek Date: Mon, 19 Feb 2024 16:59:42 +0100 Subject: [PATCH] null coalescing Signed-off-by: Piotr PG Gajek --- .forceignore | 3 +++ force-app/main/default/classes/SOQL.cls | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .forceignore diff --git a/.forceignore b/.forceignore new file mode 100644 index 00000000..29af63a9 --- /dev/null +++ b/.forceignore @@ -0,0 +1,3 @@ +**/jsconfig.json + +**/.eslintrc.json diff --git a/force-app/main/default/classes/SOQL.cls b/force-app/main/default/classes/SOQL.cls index c7ff7f00..ad2a2814 100644 --- a/force-app/main/default/classes/SOQL.cls +++ b/force-app/main/default/classes/SOQL.cls @@ -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 iterable) {