Refactor file_color method

This commit is contained in:
Claudio Bley 2020-12-22 14:02:46 +01:00
parent d0df25d35d
commit ca9e1cd5d9

View file

@ -339,8 +339,8 @@ module ColorLS
when file.chardev? then :chardev
when file.blockdev? then :blockdev
when file.socket? then :socket
else
@files.key?(key) ? :recognized_file : :unrecognized_file
when @files.key?(key) then :recognized_file
else :unrecognized_file
end
@colors[color_key]
end