lib/octopress-ink/assets/asset.rb in octopress-ink-1.0.0.alpha.21 vs lib/octopress-ink/assets/asset.rb in octopress-ink-1.0.0.alpha.22
- old
+ new
@@ -23,10 +23,10 @@
files = []
files << user_path(site)
files << plugin_path unless @plugin.type == 'local_plugin'
files = files.flatten.reject { |f| !exists? f }
- unless files.size
+ if files.empty?
raise IOError.new "Could not find #{File.basename(@file)} at #{@file}"
end
@found_file = Pathname.new files[0]
end
end