Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 86d8484

Browse files
committed
fixes for [FC002] - Avoid string interpolation where not required
1 parent 9de0b0a commit 86d8484

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

providers/pip.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ def pip_cmd(subcommand, version='')
162162
def which_pip(nr)
163163
if (nr.respond_to?("virtualenv") && nr.virtualenv)
164164
::File.join(nr.virtualenv,'/bin/pip')
165-
elsif "#{node['python']['install_method']}".eql?("source")
166-
::File.join("#{node['python']['prefix_dir']}","/bin/pip")
165+
elsif node['python']['install_method'].eql?("source")
166+
::File.join(node['python']['prefix_dir'], "/bin/pip")
167167
else
168168
'pip'
169169
end

providers/virtualenv.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ def load_current_resource
6060
end
6161

6262
def virtualenv_cmd()
63-
if "#{node['python']['install_method']}".eql?("source")
64-
::File.join("#{node['python']['prefix_dir']}","/bin/virtualenv")
63+
if node['python']['install_method'].eql?("source")
64+
::File.join(node['python']['prefix_dir'], "/bin/virtualenv")
6565
else
6666
"virtualenv"
6767
end

0 commit comments

Comments
 (0)