Fix !== null checks
This commit is contained in:
parent
208c7f1996
commit
c605f99ae2
2
jslib
2
jslib
|
@ -1 +1 @@
|
||||||
Subproject commit 5db115ae43018a34c87f00207498f2e768e4f9e5
|
Subproject commit 38c26d9649f613e4f8987e4e4727a0e90a21233b
|
|
@ -20,7 +20,7 @@ export class CliUtils {
|
||||||
static readFile(input: string): Promise<string> {
|
static readFile(input: string): Promise<string> {
|
||||||
return new Promise<string>((resolve, reject) => {
|
return new Promise<string>((resolve, reject) => {
|
||||||
let p: string = null;
|
let p: string = null;
|
||||||
if (input !== null && input !== '') {
|
if (input != null && input !== '') {
|
||||||
const osInput = path.join(input);
|
const osInput = path.join(input);
|
||||||
if (osInput.indexOf(path.sep) === -1) {
|
if (osInput.indexOf(path.sep) === -1) {
|
||||||
p = path.join(process.cwd(), osInput);
|
p = path.join(process.cwd(), osInput);
|
||||||
|
|
Loading…
Reference in New Issue