fun getIncorrectHooks()

in src/main/kotlin/org/jetbrains/teamcity/github/WebHooksStorage.kt [220:232]


    fun getIncorrectHooks(): List<Pair<GitHubRepositoryInfo, WebHookInfo>> {
        val result = ArrayList<Pair<GitHubRepositoryInfo, WebHookInfo>>()
        myDataLock.read {
            for ((key, hooks) in myData) {
                val bad = hooks.filter { it.status.bad }
                if (bad.isNotEmpty()) {
                    val info = key.toInfo()
                    bad.map { info to it }.toCollection(result)
                }
            }
        }
        return result
    }