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 | |
parent | 9ea06728905df840e8f244f0943f599f725604a7 (diff) | |
download | govuk-mini-environment-admin-4238b1f3bc88ab2a1d97aa3c4967361c853b4880.tar govuk-mini-environment-admin-4238b1f3bc88ab2a1d97aa3c4967361c853b4880.tar.gz |
Fix a couple of linting issues
-rw-r--r-- | app/controllers/terraform_http_backend_controller.rb | 6 | ||||
-rw-r--r-- | app/models/backends.rb | 2 |
2 files changed, 4 insertions, 4 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 diff --git a/app/models/backends.rb b/app/models/backends.rb index bafe9e8..0caf8fe 100644 --- a/app/models/backends.rb +++ b/app/models/backends.rb @@ -37,7 +37,7 @@ module Backends end def self.all - classes.flat_map { |backend| backend.all } + classes.flat_map(&:all) end def self.find_by_type_and_id(type_and_id) |