We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71a362c commit a35446eCopy full SHA for a35446e
1 file changed
src/resolvers/projectNotifications.ts
@@ -76,19 +76,6 @@ interface ProjectNotificationsRulePointer {
76
ruleId: string;
77
}
78
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
92
/**
93
* Returns true is threshold and threshold period are valid
94
* @param threshold - threshold of the notification rule to be checked
0 commit comments