fix: lint

This commit is contained in:
Alex
2026-02-24 00:49:23 +01:00
parent ef3d55980e
commit 802bf184fb
8 changed files with 39 additions and 16 deletions

View File

@ -62,7 +62,8 @@ UPower::UPower(const std::string& id, const Json::Value& config)
GError* gErr = NULL;
upClient_ = up_client_new_full(NULL, &gErr);
if (upClient_ == NULL) {
spdlog::error("Upower. UPower client connection error. {}", gErr ? gErr->message : "unknown error");
spdlog::error("Upower. UPower client connection error. {}",
gErr ? gErr->message : "unknown error");
if (gErr) g_error_free(gErr);
}