lib/xcake/command/make.rb in xcake-0.8.13 vs lib/xcake/command/make.rb in xcake-0.9.0
- old
+ new
@@ -5,12 +5,10 @@
self.description = 'Makes the Xcode project from a Cakefile'
def run
file_path = "#{Dir.pwd}/Cakefile"
- unless File.exist?(file_path)
- raise Xcake::Informative, "Couldn't find Cakefile"
- end
+ raise Xcake::Informative, "Couldn't find Cakefile" unless File.exist?(file_path)
EventHooks.run_hook :before_cakefile_read
file_contents = File.read(file_path)
project = Project.new