diff options
author | Christopher Baines <mail@cbaines.net> | 2018-04-03 08:25:23 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-04-12 08:30:05 +0100 |
commit | 4238b1f3bc88ab2a1d97aa3c4967361c853b4880 (patch) | |
tree | d206d3bab16345655f049616c08b5ace4a8def4b /app/controllers | |
parent | 9ea06728905df840e8f244f0943f599f725604a7 (diff) | |
download | govuk-mini-environment-admin-4238b1f3bc88ab2a1d97aa3c4967361c853b4880.tar govuk-mini-environment-admin-4238b1f3bc88ab2a1d97aa3c4967361c853b4880.tar.gz |
Fix a couple of linting issues
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/terraform_http_backend_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/terraform_http_backend_controller.rb b/app/controllers/terraform_http_backend_controller.rb index 761cb32..ceff807 100644 --- a/app/controllers/terraform_http_backend_controller.rb +++ b/app/controllers/terraform_http_backend_controller.rb @@ -31,9 +31,9 @@ class TerraformHttpBackendController < ApplicationController end def show - state = TerraformState - .where(mini_environment_id: mini_environment_id) - .last + state = TerraformState.where( + mini_environment_id: mini_environment_id + ).last if state.nil? render json: '{}', status: 404 |