Macaroon spelling bug fix

This commit is contained in:
ShahanaFarooqui 2019-01-18 22:33:50 -05:00
parent be71869994
commit 4c7ef72add

View file

@ -33,10 +33,9 @@ var setMacaroonPath = (clArgs, config) => {
if(undefined !== clArgs.lndir) {
macaroonPath = clArgs.lndir;
} else {
if(config.Authentication.macroonPath !== '') {
if(undefined !== config.Authentication.macroonPath && config.Authentication.macroonPath !== '') {
macaroonPath = config.Authentication.macroonPath;
}
if(config.Authentication.macaroonPath !== '') {
} else if(undefined !== config.Authentication.macaroonPath && config.Authentication.macaroonPath !== '') {
macaroonPath = config.Authentication.macaroonPath;
}
}