Fix new linter errors

This commit is contained in:
Alex Ling
2021-03-12 15:03:12 +00:00
parent daec2bdac6
commit ee52c52f46
16 changed files with 46 additions and 54 deletions

View File

@@ -114,7 +114,7 @@ class String
def components_similarity(other : String) : Float64
s, l = [self, other]
.map { |str| Path.new(str).parts }
.sort_by &.size
.sort_by! &.size
match = s.reverse.zip(l.reverse).count { |a, b| a == b }
match / s.size