notifications: remove dead code

This commit is contained in:
Girish Ramakrishnan
2021-11-17 10:26:47 -08:00
parent cd302a7621
commit 5ab2d9da8a
-3
View File
@@ -246,9 +246,6 @@ async function onEvent(id, action, source, data) {
assert.strictEqual(typeof source, 'object');
assert.strictEqual(typeof data, 'object');
// external ldap syncer does not generate notifications - FIXME username might be an issue here
if (source.username === AuditSource.EXTERNAL_LDAP_TASK.username) return;
switch (action) {
case eventlog.ACTION_APP_OOM:
return await oomEvent(id, data.containerId, data.app, data.addonName, data.event);