Skip to content

Commit

Permalink
Use multi-line if instead of ternary
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn committed Feb 16, 2016
1 parent f4f7d56 commit a9b30a7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,11 @@ def ensure_access_to_stock_location
end

def source_location
@source_location ||= params.key?(:transfer_receive_stock) ? nil :
@source_location ||= if params.key?(:transfer_receive_stock)
nil
else
StockLocation.find(params[:transfer_source_location_id])
end
end

def destination_location
Expand Down

0 comments on commit a9b30a7

Please sign in to comment.