Skip to content

Commit 5199ef6

Browse files
committed
eslint fixes
1 parent 6fb9266 commit 5199ef6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

plugins/hooks/api/api.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,15 +305,16 @@ plugins.register("/i/hook/save", function(ob) {
305305
function(err, result) {
306306
if (!err) {
307307
// Audit log: Hook updated
308-
if(result && result.value) {
308+
if (result && result.value) {
309309
plugins.dispatch("/systemlogs", {
310310
params: params,
311311
action: "hook_updated",
312312
data: { updated: result.value }
313313
});
314-
} else {
314+
}
315+
else {
315316
common.returnMessage(params, 500, "No result found");
316-
}
317+
}
317318
common.returnOutput(params, result && result.value);
318319
}
319320
else {

0 commit comments

Comments
 (0)