summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-03-07 00:42:39 +0900
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-03-23 17:11:49 +0900
commitf8d6e81b92e85663bead6036e80407d7ab55a643 (patch)
tree2d75864afbe8bde0263590cf97dcf2857c84b60b /app
parent617292046cf69ff4a41da875fe67f0ce7f612ea3 (diff)
downloadgitlab-ce-f8d6e81b92e85663bead6036e80407d7ab55a643.tar.gz
Fix rubocop anger
Diffstat (limited to 'app')
-rw-r--r--app/serializers/build_serializer.rb2
-rw-r--r--app/serializers/pipeline_serializer.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/serializers/build_serializer.rb b/app/serializers/build_serializer.rb
index 39460bbd092..b1739caaf5f 100644
--- a/app/serializers/build_serializer.rb
+++ b/app/serializers/build_serializer.rb
@@ -2,7 +2,7 @@ class BuildSerializer < BaseSerializer
entity BuildEntity
def with_status
- tap { @status_only = {only: [{details: [:status]}]} }
+ tap { @status_only = { only: [{ details: [:status] }] } }
end
def represent(resource, opts = {})
diff --git a/app/serializers/pipeline_serializer.rb b/app/serializers/pipeline_serializer.rb
index 4de9e620f64..6b6e4a8f0f0 100644
--- a/app/serializers/pipeline_serializer.rb
+++ b/app/serializers/pipeline_serializer.rb
@@ -12,7 +12,7 @@ class PipelineSerializer < BaseSerializer
end
def with_status
- tap { @status_only = {only: [{details: [:status]}]} }
+ tap { @status_only = { only: [{ details: [:status] }] } }
end
def represent(resource, opts = {})