lib/fspath/mac.rb in fspath-mac-3.0.0 vs lib/fspath/mac.rb in fspath-mac-3.0.1
- old
+ new
@@ -15,11 +15,10 @@
FINDER_LABEL_COLORS[finder_label_number]
end
# Set finder label (:grey is same as :gray, nil or false as :none)
def finder_label=(color)
- color = FINDER_LABEL_COLOR_ALIASES[color] || color
- index = FINDER_LABEL_COLORS.index(color)
+ index = FINDER_LABEL_COLORS.index(FINDER_LABEL_COLOR_ALIASES[color] || color)
raise "Unknown label #{color.inspect}" unless index
self.finder_label_number = index
end
# Get spotlight comment