Use === for comparison
This commit is contained in:
parent
36c995018d
commit
ef047bc515
|
@ -50,7 +50,7 @@ function init(configPath, cb) {
|
|||
//
|
||||
if(!_.has(mergedConfig, 'messages.areas.') ||
|
||||
!_.isArray(mergedConfig.messages.areas) ||
|
||||
0 == mergedConfig.messages.areas.length ||
|
||||
0 === mergedConfig.messages.areas.length ||
|
||||
!_.isString(mergedConfig.messages.areas[0].name))
|
||||
{
|
||||
var msgAreasErr = new Error('Please create at least one message area');
|
||||
|
|
Loading…
Reference in New Issue