lib/chkex/file_handler.rb in chkex-0.1.0 vs lib/chkex/file_handler.rb in chkex-0.1.1
- old
+ new
@@ -4,9 +4,9 @@
# file_path is actually a URL, not a file, don't try to open it
return file_path unless File.file?(file_path)
raise Chkex::FileNotFound unless File.exist?(file_path)
- File.read(file_path).split("\n")
+ File.read(file_path).split("\n").uniq
end
end
end
\ No newline at end of file