Skip to content

Commit 079354c

Browse files
committed
Make lintastic
1 parent e8220f0 commit 079354c

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

cookbooks/boxcutter_ros/attributes/default.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@
33
'mirror' => 'http://packages.ros.org/ros2/ubuntu',
44
'distributions' => {
55
'jazzy' => {
6-
'packages' => ['ros-jazzy-desktop', 'ros-jazzy-ros-gz']
7-
}
8-
}
6+
'packages' => ['ros-jazzy-desktop', 'ros-jazzy-ros-gz'],
7+
},
8+
},
99
}
1010
elsif node.ubuntu? && node['platform_version'].start_with?('22')
1111
default['boxcutter_ros'] = {
1212
'mirror' => 'http://packages.ros.org/ros2/ubuntu',
1313
'distributions' => {
1414
'humble' => {
15-
'packages' => ['ros-humble-desktop', 'ros-humble-ros-gz']
16-
}
17-
}
15+
'packages' => ['ros-humble-desktop', 'ros-humble-ros-gz'],
16+
},
17+
},
1818
}
1919
elsif node.ubuntu? && node['platform_version'].start_with?('20')
2020
default['boxcutter_ros'] = {
2121
'mirror' => 'http://packages.ros.org/ros2/ubuntu',
2222
'distributions' => {
2323
'foxy' => {
24-
'packages' => ['ros-foxy-desktop']
25-
}
26-
}
24+
'packages' => ['ros-foxy-desktop'],
25+
},
26+
},
2727
}
2828
else
2929
default['boxcutter_ros'] = {
3030
'mirror' => 'http://packages.ros.org/ros2/ubuntu',
31-
'distributions' => {}
31+
'distributions' => {},
3232
}
3333
end

cookbooks/boxcutter_ros/recipes/common.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,5 @@
9090
# Omit signed-by and use apt-key to import the key
9191
node.default['fb_apt']['repos'] << "deb #{node['boxcutter_ros']['mirror']} #{node['lsb']['codename']} main"
9292
when 'centos'
93-
raise 'Unsupported platform'
93+
fail 'Unsupported platform'
9494
end

cookbooks/boxcutter_ros/recipes/default.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
# See the License for the specific language governing permissions and
1717
# limitations under the License.
1818

19-
node['boxcutter_ros']['distributions'].each do |distro_name, distro_config|
19+
node['boxcutter_ros']['distributions'].each do |_distro_name, distro_config|
2020
package distro_config['packages']
2121
end

cookbooks/boxcutter_ros/recipes/gazebo.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
node.default['fb_apt']['repos'] << \
9090
"deb http://packages.osrfoundation.org/gazebo/ubuntu-stable #{node['lsb']['codename']} main"
9191
when 'centos'
92-
raise 'Unsupported platform'
92+
fail 'Unsupported platform'
9393
end
9494

9595
package 'gz-harmonic' do

0 commit comments

Comments
 (0)