未验证 提交 b903de95 编写于 作者: X XhmikosR 提交者: GitHub

test/config/_index.js: fix `find` usage (#1438)

上级 e4ce31a2
......@@ -279,9 +279,5 @@ describe('config', function () {
});
function getPlugin(name, plugins) {
return plugins.find(function (plugin) {
if (plugin.name === name) {
return plugin;
}
});
return plugins.find((plugin) => plugin.name === name);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册