Remove unsafe call

This commit is contained in:
Douglas Eichelberger 2025-09-08 09:23:41 -07:00
parent 61e08e4b41
commit 345255613c
No known key found for this signature in database
GPG Key ID: F90193CBD547EB81

View File

@ -476,7 +476,16 @@ class Reporter
def report(auto_update: false) def report(auto_update: false)
return @report if @report return @report if @report
@report = T.unsafe(Hash.new { |h, k| h[k] = [] }) @report = {
A: [],
AC: [],
D: [],
DC: [],
M: [],
MC: [],
R: T.let([], T::Array[[String, String]]),
RC: T.let([], T::Array[[String, String]]),
}
return @report unless updated? return @report unless updated?
diff.each_line do |line| diff.each_line do |line|