Commit 548f3081 authored by André Kerkhoff's avatar André Kerkhoff
Browse files

Make minor changes for cookstyle

parent c7e09fc0
......@@ -68,7 +68,7 @@ module Foswiki
end
def foswiki_resolve(value, tools_dir = nil)
return nil if value.nil?
return if value.nil?
while value =~ /\$Foswiki::cfg{/
value = value.gsub(/\$Foswiki::cfg({[A-Za-z}{]+})/) do |_|
foswiki_get(Regexp.last_match[1], tools_dir)
......
......@@ -12,7 +12,7 @@ module Foswiki
else
node_obj['foswiki']['config']["#{name.capitalize}Dir"]
end
return nil if dir.nil?
return if dir.nil?
dir = dir.dup
while dir =~ /\$Foswiki::cfg{/
dir.gsub!(/\$Foswiki::cfg{([\w}{]+)}/) do |_|
......
......@@ -7,7 +7,7 @@
# All rights reserved - Do Not Redistribute
#
Chef::Recipe.include Foswiki::Helper
Chef::DSL::Recipe.include Foswiki::Helper
username = 'foswiki'
password = ''
......
......@@ -7,7 +7,7 @@
# All rights reserved - Do Not Redistribute
#
Chef::Recipe.include Foswiki::Dependencies
Chef::DSL::Recipe.include Foswiki::Dependencies
# Install needed packages
if platform_family? 'debian'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment