Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
string typeof check
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Dec 26, 2018
1 parent cddeeef commit 7a3462a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/importers/baseImporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export abstract class BaseImporter {
}

protected isNullOrWhitespace(str: string): boolean {
return str == null || str.trim() === '';
return str == null || typeof str !== 'string' || str.trim() === '';
}

protected getValueOrDefault(str: string, defaultValue: string = null): string {
Expand Down

0 comments on commit 7a3462a

Please sign in to comment.