二元运算参数类型字符串与类型字符串不兼容

Binary operation argument type string is not compatible with type string

我的编辑器 (Webstorm) 给我这个奇怪的消息:

Binary operation argument type string is not compatible with type string

这是导致警告消息的代码:

const {masterid = '', type = ''} = req.query;

if (!masterid) {
    return res.status(500).send(new Error('Missing query param "masterid".'));
}

async.autoInject({

    patients(callback) {
        if(type && type !== 'staff'){
            return process.nextTick(callback);
        }
        store.get(`chat:presence:users:${masterid}`, callback)
    },

    users(callback) {
        if(type && type !== 'patient'){
            return process.nextTick(callback);
        }
        store.get(`chat:presence:patient:${masterid}`, callback);
    }

}, (err, results) => {

    if (err) {
        return res.status(err.code).send(err);
    }

    res.json(results);

});

也许我使用了错误的语法?

我只是想为变量设置默认值..语法应该是正确的。

这是一个错误,请关注WEB-33226更新