try to adhere more to the rest of the coding style

This commit is contained in:
ico277
2024-10-22 18:23:24 +02:00
parent 6e4160dc53
commit 8cae35d49f
+2 -2
View File
@@ -26,8 +26,8 @@ waybar::modules::Temperature::Temperature(const std::string& id, const Json::Val
auto input_filename = config_["input-filename"].asString();
for (const auto& entry : std::filesystem::directory_iterator("/sys/class/hwmon/")) {
if (std::filesystem::is_directory(entry) && file_path_.empty()) {
std::string name_filepath = entry.path().string() + "/name";
std::string input_filepath = entry.path().string() + "/" + input_filename;
auto name_filepath = entry.path().string() + "/name";
auto input_filepath = entry.path().string() + "/" + input_filename;
if (std::filesystem::exists(name_filepath) && std::filesystem::exists(input_filepath)) {
std::ifstream name_file(name_filepath);