Skip to content

Commit

Permalink
chore: lint unrelated files so the CI passes
Browse files Browse the repository at this point in the history
  • Loading branch information
Syndelis committed Oct 2, 2023
1 parent 258ab8b commit 1b98a04
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/modules/backlight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,9 @@ void waybar::modules::Backlight::upsert_device(ForwardIt first, ForwardIt last,
check_nn(name);

const char *actual_brightness_attr =
strncmp(name, "amdgpu_bl", 9) == 0 || strcmp(name, "apple-panel-bl") == 0 ? "brightness" : "actual_brightness";
strncmp(name, "amdgpu_bl", 9) == 0 || strcmp(name, "apple-panel-bl") == 0
? "brightness"
: "actual_brightness";

const char *actual = udev_device_get_sysattr_value(dev, actual_brightness_attr);
const char *max = udev_device_get_sysattr_value(dev, "max_brightness");
Expand Down
2 changes: 1 addition & 1 deletion src/modules/battery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ const std::tuple<uint8_t, float, std::string, float> waybar::modules::Battery::g
std::string _status;

/* Check for adapter status if battery is not available */
if(!std::ifstream(bat / "status")) {
if (!std::ifstream(bat / "status")) {
std::getline(std::ifstream(adapter_ / "status"), _status);
} else {
std::getline(std::ifstream(bat / "status"), _status);
Expand Down
2 changes: 1 addition & 1 deletion src/modules/custom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ waybar::modules::Custom::Custom(const std::string& name, const std::string& id,
delayWorker();
} else if (config_["exec"].isString()) {
continuousWorker();
}
}
}

waybar::modules::Custom::~Custom() {
Expand Down

0 comments on commit 1b98a04

Please sign in to comment.