Skip to content

Commit c769e89

Browse files
committed
refactor: simplified conditional logic
1 parent cf90ad2 commit c769e89

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/features/looking-for-group.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,7 @@ export const lookingForGroup = async (bot: Client) => {
5555
if (!message) {
5656
return;
5757
}
58-
59-
if (
60-
!(message.attachments && message.attachments.size > 0) &&
61-
message.content.length === 0
62-
) {
58+
if (message.attachments.size === 0 && message.content.length === 0) {
6359
return;
6460
}
6561
await thread.send({

0 commit comments

Comments
 (0)