1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Style: Apply clang-tidy's readability-braces-around-statements

This commit is contained in:
Rémi Verschelde
2021-04-05 14:09:59 +02:00
parent 9bbe51dc27
commit d83761ba80
32 changed files with 308 additions and 165 deletions

View File

@@ -185,10 +185,11 @@ void JoypadLinux::monitor_joypads(udev *p_udev) {
if (devnode) {
String devnode_str = devnode;
if (devnode_str.find(ignore_str) == -1) {
if (action == "add")
if (action == "add") {
open_joypad(devnode);
else if (String(action) == "remove")
} else if (String(action) == "remove") {
close_joypad(get_joy_from_path(devnode));
}
}
}