repositories
/
e-mobility-charging-stations-simulator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d54dcc
)
refactor(simulator): remove unneeded ternary operator
author
Jérôme Benoit
<jerome.benoit@sap.com>
Tue, 7 Feb 2023 22:15:56 +0000
(23:15 +0100)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Tue, 7 Feb 2023 22:15:56 +0000
(23:15 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/utils/Utils.ts
patch
|
blob
|
blame
|
history
diff --git
a/src/utils/Utils.ts
b/src/utils/Utils.ts
index 433891550f1a222ba474aa2dd83f5edf08f46842..34ace09c50fe4bcbddf5b21015e9482fa72532c2 100644
(file)
--- a/
src/utils/Utils.ts
+++ b/
src/utils/Utils.ts
@@
-209,7
+209,7
@@
export default class Utils {
public static isNullOrUndefined(value: unknown): boolean {
// eslint-disable-next-line eqeqeq, no-eq-null
- return value == null
? true : false
;
+ return value == null;
}
public static isEmptyArray(object: unknown | unknown[]): boolean {