Skip to content

Commit

Permalink
Standard recommended (non-automatic) fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmorrison committed Nov 15, 2018
1 parent de4decc commit 1442867
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/controllers/api/devices_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
class API::DevicesController < ApplicationController
def trigger
if device = Device.find_by(identifier: params[:coreid])
device = Device.find_by(identifier: params[:coreid])
if device
TriggerParticle.call(device)
end
head :ok
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/colors_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def index

loop do
ActiveRecord::Base.connection_pool.with_connection do
response.stream.write Status.uncached { Status.ryg(@ids) }
response.stream.write(Status.uncached { Status.ryg(@ids) })
end

sleep 1
Expand Down

0 comments on commit 1442867

Please sign in to comment.