summaryrefslogtreecommitdiff
path: root/lib/bundler/templates
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-16 12:42:39 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-03 09:29:59 +0900
commitbb6b9b49293378cb48510e27a98db152824658cd (patch)
treeb5d264a1528b95c83594cdc8cb9404cce11b8b87 /lib/bundler/templates
parentbd0f19f137a952f5f8b838537f473385b204ed78 (diff)
[bundler/bundler] Remove redundant begin-end block
https://github.com/bundler/bundler/commit/1d017c3f36
Diffstat (limited to 'lib/bundler/templates')
-rw-r--r--lib/bundler/templates/Executable.bundler3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bundler/templates/Executable.bundler b/lib/bundler/templates/Executable.bundler
index 5fe16176f6..5b49648a1b 100644
--- a/lib/bundler/templates/Executable.bundler
+++ b/lib/bundler/templates/Executable.bundler
@@ -61,10 +61,9 @@ m = Module.new do
end
def bundler_version
- @bundler_version ||= begin
+ @bundler_version ||=
env_var_version || cli_arg_version ||
lockfile_version || "#{Gem::Requirement.default}.a"
- end
end
def load_bundler!