fix: lint
Some checks reported errors
continuous-integration/drone/pr Build was killed

This commit is contained in:
kolaente 2023-05-31 16:22:02 +02:00
parent 4aad488707
commit 7e50b6e270
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -35,7 +35,7 @@ interface MatchedAssignee extends IUser {
} }
// IDEA: maybe use a small fuzzy search here to prevent errors // IDEA: maybe use a small fuzzy search here to prevent errors
function findPropertyByValue(object, key, value, fuzzy: boolean = false) { function findPropertyByValue(object, key, value, fuzzy = false) {
return Object.values(object).find(l => { return Object.values(object).find(l => {
if (fuzzy) { if (fuzzy) {
return l[key]?.toLowerCase().includes(value.toLowerCase()) return l[key]?.toLowerCase().includes(value.toLowerCase())