Skip to content

Commit

Permalink
Bump typos version in CI & address errors (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
Blacksmoke16 authored Jul 15, 2024
1 parent 2e19641 commit 754e75e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Check Spelling
uses: crate-ci/typos@v1.22.9
uses: crate-ci/typos@v1.23.2
check_format:
strategy:
matrix:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
struct Athena::Framework::Controller::ValueResolvers::Time
include Athena::Framework::Controller::ValueResolvers::Interface

# Allows customing the time format and/or location used to parse the string datetime as part of the `ATHR::Time` resolver.
# Allows customizing the time format and/or location used to parse the string datetime as part of the `ATHR::Time` resolver.
# See the related resolver documentation for more information.
configuration Format, format : String? = nil, location : ::Time::Location = ::Time::Location::UTC

Expand Down
6 changes: 3 additions & 3 deletions src/components/negotiation/src/abstract_negotiator.cr
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ abstract class Athena::Negotiation::AbstractNegotiator(HeaderType)
raise ex if strict
end

accepted_priorties = priorities.map { |p| HeaderType.new p }
accepted_priorities = priorities.map { |p| HeaderType.new p }

matches = self.find_matches accepted_headers, accepted_priorties
matches = self.find_matches accepted_headers, accepted_priorities

specific_matches = matches.reduce({} of Int32 => ANG::AcceptMatch) do |acc, match|
ANG::AcceptMatch.reduce acc, match
Expand All @@ -38,7 +38,7 @@ abstract class Athena::Negotiation::AbstractNegotiator(HeaderType)

match = specific_matches.shift?

match.nil? ? nil : accepted_priorties[match.index]
match.nil? ? nil : accepted_priorities[match.index]
end

# Returns an array of `HeaderType` that the provided *header* allows, ordered so that the `#best` match is first.
Expand Down

0 comments on commit 754e75e

Please sign in to comment.