ISSUE#1874 - happy linter

This commit is contained in:
Viktar Lukashonak 2022-12-14 16:49:03 +03:00
parent 0079092699
commit 995802e8ae
No known key found for this signature in database
GPG Key ID: 08A413AA87200A6F
1 changed files with 1 additions and 2 deletions

View File

@ -266,8 +266,7 @@ auto waybar::modules::Clock::calendar_text(const waybar_time& wtime) -> std::str
/*Print weeks on the right when the endings with spaces*/
if (weeks_pos == WeeksSide::RIGHT && d == last_day) {
empty_days = 6 - (wd.c_encoding() - first_dow.c_encoding());
if (empty_days > 0 &&
empty_days < 7) {
if (empty_days > 0 && empty_days < 7) {
os << std::string(empty_days * 3, ' ');
}