Skip to content

Commit a35446e

Browse files
committed
clean(resolvers): remove redundant validation
1 parent 71a362c commit a35446e

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

src/resolvers/projectNotifications.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,6 @@ interface ProjectNotificationsRulePointer {
7676
ruleId: string;
7777
}
7878

79-
/**
80-
* Return true if all passed channels are empty
81-
* @param channels - project notifications channels
82-
*/
83-
function isChannelsEmpty(channels: NotificationsChannelsDBScheme): boolean {
84-
const notEmptyChannels = Object.entries(channels)
85-
.filter(([_, channel]) => {
86-
return (channel as NotificationsChannelSettingsDBScheme).endpoint.replace(/\s+/, '').trim().length !== 0;
87-
});
88-
89-
return notEmptyChannels.length === 0;
90-
}
91-
9279
/**
9380
* Returns true is threshold and threshold period are valid
9481
* @param threshold - threshold of the notification rule to be checked

0 commit comments

Comments
 (0)