Skip to content

Commit

Permalink
Shut up Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
squadette committed Feb 14, 2017
1 parent d351762 commit 72bb5dd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/react_on_rails/test_helper/node_process_launcher.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module ReactOnRails
module TestHelper
def self.launch_node
if ReactOnRails.configuration.server_render_method == "NodeJS"
path = "#{::Rails.root}/client/node"
puts "Launching NodeJS server at #{path}"
system("cd #{path} && yarn start &")
sleep(1)
end
return unless ReactOnRails.configuration.server_render_method == "NodeJS"

path = "#{::Rails.root}/client/node"
puts "Launching NodeJS server at #{path}"
system("cd #{path} && yarn start &")
sleep(1)
end
end
end

0 comments on commit 72bb5dd

Please sign in to comment.