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:
27e40a3
)
Fix isEmptyString() semantic
author
Jérôme Benoit
<jerome.benoit@sap.com>
Wed, 25 Jan 2023 23:02:59 +0000
(
00:02
+0100)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Wed, 25 Jan 2023 23:02:59 +0000
(
00:02
+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 6557a588446455506656c7f7133e8fe85c5881f0..0952be9bf206a3e8ea83a33fe61f65e723bea37e 100644
(file)
--- a/
src/utils/Utils.ts
+++ b/
src/utils/Utils.ts
@@
-193,7
+193,7
@@
export default class Utils {
}
public static isEmptyString(value: unknown): boolean {
- return Utils.isString(value)
&& (value as string).trim().length === 0
;
+ return Utils.isString(value)
? (value as string).trim().length === 0 : true
;
}
public static isUndefined(value: unknown): boolean {