We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 39d4c8c + ca5856c commit 8fe9916Copy full SHA for 8fe9916
.rubocop.yml
@@ -59,8 +59,6 @@ Style/SingleLineBlockParams:
59
Enabled: false
60
Style/Not:
61
62
-Style/WhileUntilModifier:
63
- Enabled: false
64
Style/RescueModifier:
65
66
Style/SpecialGlobalVars:
lib/capistrano/configuration.rb
@@ -51,9 +51,7 @@ def delete(key)
51
52
def fetch(key, default=nil, &block)
53
value = fetch_for(key, default, &block)
54
- while callable_without_parameters?(value)
55
- value = set(key, value.call)
56
- end
+ value = set(key, value.call) while callable_without_parameters?(value)
57
return value
58
end
0 commit comments