Skip to content

Commit 70b6512

Browse files
authored
Merge pull request #282 from colby-swandale/colby/fix-rubocop
fix errors in rubocop
2 parents 3988bc5 + ab22780 commit 70b6512

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/rake/packagetask.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,7 @@ def define
132132
task package: ["#{package_dir}/#{file}"]
133133
file "#{package_dir}/#{file}" =>
134134
[package_dir_path] + package_files do
135-
chdir(package_dir) do
136-
sh @tar_command, "#{flag}cvf", file, package_name
137-
end
135+
chdir(package_dir) { sh @tar_command, "#{flag}cvf", file, package_name }
138136
end
139137
end
140138
end
@@ -143,9 +141,7 @@ def define
143141
task package: ["#{package_dir}/#{zip_file}"]
144142
file "#{package_dir}/#{zip_file}" =>
145143
[package_dir_path] + package_files do
146-
chdir(package_dir) do
147-
sh @zip_command, "-r", zip_file, package_name
148-
end
144+
chdir(package_dir) { sh @zip_command, "-r", zip_file, package_name }
149145
end
150146
end
151147

0 commit comments

Comments
 (0)