lib/getapp/import/capterra.rb in getapp-0.1.0 vs lib/getapp/import/capterra.rb in getapp-0.1.1
- old
+ new
@@ -47,13 +47,11 @@
# Raise an Getapp::Capterra::FileNotFound exception if
# file is missing.
#
def check_file_exist?
puts "Capterra: Checking file exist" if verbose
- unless File.exist?(path)
- puts "Capterra: File does not exist." if verbose
- raise Getapp::Capterra::FileNotFound, "Capterra: File does not exist."
- end
+ puts "Capterra: File does not exist." if verbose
+ raise Getapp::Capterra::FileNotFound, "Capterra: File does not exist." unless File.exist?(path)
end
# == Getapp::Import::Capterra parse_products Private Method
#
# Load yaml file into JSON format.