8000 Fix warning due to string literal in condition (#91) · p0deje/rules_ruby-1@9bd2ed8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9bd2ed8

Browse files
authored
Fix warning due to string literal in condition (bazelruby#91)
1 parent c855522 commit 9bd2ed8
8000

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ruby/private/binary_wrapper.tpl

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ def main(args)
119119
runfiles_envkey, runfiles_envvalue = runfiles_envvar(runfiles)
120120
ENV[runfiles_envkey] = runfiles_envvalue if runfiles_envkey
121121

122-
ENV["GEM_PATH"] = File.join(runfiles, "{gem_path}") if "{gem_path}"
123-
ENV["GEM_HOME"] = File.join(runfiles, "{gem_path}") if "{gem_path}"
122+
ENV["GEM_PATH"] = File.join(runfiles, "{gem_path}") if !"{gem_path}".empty?
123+
ENV["GEM_HOME"] = File.join(runfiles, "{gem_path}") if !"{gem_path}".empty?
124124

125125
ruby_program = find_ruby_binary
126126

0 commit comments

Comments
 (0)
0