mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 08:39:19 +02:00
refactor(sonar): scope single-use variables in if init-statements (cpp:S6004)
This commit is contained in:
@@ -171,8 +171,7 @@ drivermouse_input::recall_bindings() {
|
||||
|
||||
std::string filePath = "eu07_input-mouse.ini";
|
||||
|
||||
fs::path appPath = user_config_path("eu07_input-mouse.ini");
|
||||
if (!appPath.empty() && fs::exists(appPath))
|
||||
if (fs::path appPath = user_config_path("eu07_input-mouse.ini"); !appPath.empty() && fs::exists(appPath))
|
||||
filePath = appPath.string();
|
||||
|
||||
cParser bindingparser(filePath.c_str(), cParser::buffer_FILE);
|
||||
|
||||
Reference in New Issue
Block a user