Merge pull request #184 from mamantoha/fix-crystal-nightly

fix Crystal nightly
This commit is contained in:
Sijawusz Pur Rahnama 2021-01-16 19:53:48 +01:00 committed by GitHub
commit 270a003df6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@ module Ameba
getter issues = [] of Issue
# Adds a new issue to the list of issues.
def add_issue(rule, location, end_location, message, status = nil)
def add_issue(rule, location : Crystal::Location?, end_location : Crystal::Location?, message, status = nil)
status ||= :disabled if location_disabled?(location, rule)
issues << Issue.new rule, location, end_location, message, status
end