commit a303421a9e22ae90170c90231904aa0a9c5828e5 parent 28788a711d53fa631984b7ce11bcc921ed20dc67 Author: lostd <lostd@2f30.org> Date: Sun, 12 Jan 2014 17:06:44 +0000 Comment on function Diffstat:
M | bin/musicfix | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/bin/musicfix b/bin/musicfix @@ -145,6 +145,7 @@ def mkshort n n.gsub(ftre, ft) end +# Return single item if array is full of duplicates def flatten_if_one ary if ary.uniq.length == 1 then return ary.first