Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
Fixing linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kierk committed Dec 10, 2018
1 parent cd3cdca commit 01c83dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/concept_service_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ def systems
@response = HTTParty.get(CONCEPT_SYSTEM_URL, open_timeout: 5)
render json: @response.body, status: @response.code
rescue Net::OpenTimeout
render status: 504, json: {message: 'Error opening network connection'}
render status: 504, json: { message: 'Error opening network connection' }
end

# GET /concepts/search
def search
@response = HTTParty.get(CONCEPT_SEARCH_URL, { open_timeout: 5 }, query: { system: params[:system], version: params[:version], search: params[:search] })
render json: @response.body, status: @response.code
rescue Net::OpenTimeout
render status: 504, json: {message: 'Error opening network connection'}
render status: 504, json: { message: 'Error opening network connection' }
end
end

0 comments on commit 01c83dc

Please sign in to comment.