mirror of
https://github.com/athityakumar/colorls.git
synced 2024-09-19 05:31:23 +02:00
Refactor file_color
method
This commit is contained in:
parent
d0df25d35d
commit
ca9e1cd5d9
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue