Skip to content

Commit

Permalink
Fix newly found offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
Sija committed Jan 24, 2025
1 parent 15c4989 commit 54dc17b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ameba/rule/documentation/documentation_admonition.cr
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module Ameba::Rule::Documentation

@[YAML::Field(ignore: true)]
private getter location : Time::Location do
Time::Location.load(self.timezone)
Time::Location.load(timezone)
end

def test(source)
Expand Down
2 changes: 1 addition & 1 deletion src/ameba/rule/lint/unneeded_disable_directive.cr
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module Ameba::Rule::Lint
return unless directive[:action] == "disable"

directive[:rules].reject do |rule_name|
next if rule_name == self.name
next if rule_name == name
source.issues.any? do |issue|
issue.rule.name == rule_name &&
issue.disabled? &&
Expand Down
2 changes: 1 addition & 1 deletion src/contrib/read_type_doc.cr
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ private class DocFinder < Crystal::Visitor
getter doc : String?

def initialize(nodes, @type_name)
self.accept(nodes)
accept(nodes)
end

def visit(node : Crystal::ASTNode)
Expand Down

0 comments on commit 54dc17b

Please sign in to comment.