diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-05-30 13:08:53 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-05-30 13:08:53 +0300 |
commit | 9d5f80e00b08fa75469fc8be1bb151308580de9a (patch) | |
tree | a36cf8f3841b145531caf20b063201483a2a7e62 /app/models/ci/build.rb | |
parent | 43c35b0f20fb3bb67ea2b96bf8f806c7e95b6aec (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.rb | 2 |
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 |