Skip to content

Commit

Permalink
Fix formatting issues from Crystal 1.8-dev (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
Blacksmoke16 authored Jan 24, 2023
1 parent 9ec4dc2 commit 0ad460e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/console/src/helper/question.cr
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class Athena::Console::Helper::Question < Athena::Console::Helper
end
end

private def validate_attempts(output : ACON::Output::Interface, question : ACON::Question::Base)
private def validate_attempts(output : ACON::Output::Interface, question : ACON::Question::Base, &)
error = nil
attempts = question.max_attempts

Expand Down
2 changes: 1 addition & 1 deletion src/components/routing/src/route_collection.cr
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class Athena::Routing::RouteCollection
end

# Yields the name and `ART::Route` object for each registered route.
def each : Nil
def each(&) : Nil
self.routes.each do |k, v|
yield({k, v})
end
Expand Down

0 comments on commit 0ad460e

Please sign in to comment.