fix: sonar检查

This commit is contained in:
gandchuan 2018-07-13 11:40:02 +08:00
parent 9e9a39dc1e
commit 2d44ddc892

View File

@ -184,7 +184,7 @@ class wikiController extends baseController {
}
break;
case 'editor':
let userInst, userinfo, data;``
let userInst, userinfo, data;
if (result && result.edit_uid !== 0 && result.edit_uid !== this.getUid()) {
userInst = yapi.getInst(userModel);
userinfo = await userInst.findById(result.edit_uid);