Skip to content

Commit bfd411f

Browse files
committed
Style improvement on bot detection
1 parent db87374 commit bfd411f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Web/Webhook.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,10 @@ await notifier.PostAsync(new PushoverMessage
180180
}
181181
}
182182

183-
static bool IsBot(Octokit.Webhooks.Models.User? user) => user?.Type == UserType.Bot ||
184-
user?.Login.EndsWith("-bot") == true ||
185-
user?.Name?.EndsWith("bot]") == true || user?.Name?.EndsWith("-bot") == true;
183+
static bool IsBot(Octokit.Webhooks.Models.User? user) =>
184+
user?.Type == UserType.Bot ||
185+
user?.Login.EndsWith("-bot") == true ||
186+
user?.Name?.EndsWith("bot]") == true ||
187+
user?.Name?.EndsWith("-bot") == true;
186188

187189
}

0 commit comments

Comments
 (0)