Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-30 13:08:53 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-30 13:08:53 +0300
commit9d5f80e00b08fa75469fc8be1bb151308580de9a (patch)
treea36cf8f3841b145531caf20b063201483a2a7e62 /app/models/ci/build.rb
parent43c35b0f20fb3bb67ea2b96bf8f806c7e95b6aec (diff)
Enable Style/MethodDefParentheses rubocop cop
Use def with parentheses when there are parameters. See #17478
Diffstat (limited to 'app/models/ci/build.rb')
-rw-r--r--app/models/ci/build.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb
index ff7dd44c526..5e77fda70b9 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -286,7 +286,7 @@ module Ci
project.runners_token
end
- def valid_token? token
+ def valid_token?(token)
project.valid_runners_token? token
end