mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Style: Apply clang-tidy's readability-braces-around-statements
This commit is contained in:
parent
9bbe51dc27
commit
d83761ba80
32 changed files with 308 additions and 165 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue