fix the lint problem

This commit is contained in:
yubo
2026-04-09 21:18:15 +08:00
parent 906a589715
commit ac62754b28
+2 -2
View File
@@ -127,8 +127,8 @@ void waybar::modules::Battery::refreshBatteries() {
if (!bat_defined && fs::exists(node.path() / "scope")) {
std::string scope;
try {
//for hotplug-in device, access it is always unstable because you may remove the device anytime
//so just allow failure happen and do nothing
// for hotplug-in device, access it is always unstable because you may remove the
// device anytime so just allow failure happen and do nothing
std::ifstream(node.path() / "scope") >> scope;
} catch (const std::ifstream::failure& e) {
scope.clear();