Skip to content

Commit 3815353

Browse files
committed
IIRR-29 Update with rubocop suggestions
1 parent ffa8066 commit 3815353

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

app/lib/discord/events/puzzle_answer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def handle(event)
6161
content: "You have already answered this puzzle. You cannot change your answer.",
6262
ephemeral: true # Only the user sees this message
6363
)
64-
return
64+
nil
6565
end
6666
end
6767

db/seeds.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,9 @@
7171
user_id: user.id,
7272
puzzle_id: Puzzle.all.sample.id,
7373
server_id: server.id,
74-
choice: ["ruby", "rails"].sample,
75-
is_correct: [true, false].sample
74+
choice: [ "ruby", "rails" ].sample,
75+
is_correct: [ true, false ].sample
7676
)
7777
end
7878
end
7979
end
80-

0 commit comments

Comments
 (0)