Skip to content

Commit 667fcd9

Browse files
committed
checking undefined key balue
1 parent 569f75c commit 667fcd9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Local.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ function Local(){
9191

9292
switch(key){
9393
case 'key':
94-
this.key = value;
94+
if(value)
95+
this.key = value;
9596
break;
9697

9798
case 'verbose':

0 commit comments

Comments
 (0)