Fix linter warnings

This commit is contained in:
badaix 2025-02-13 22:18:17 +01:00 committed by Johannes Pohl
parent 66868e2501
commit 5c41afd9e3
31 changed files with 131 additions and 116 deletions

View file

@ -494,8 +494,7 @@ TEST_CASE("Librespot2")
}
line = "[2021-06-04T07:20:47Z INFO librespot_playback::player] metadata:{\"ARTIST\":\"artist\",\"TITLE\":\"title\"}";
n = 0;
if (((n = line.find("metadata:")) != std::string::npos))
if (n = line.find("metadata:"); n != std::string::npos)
{
std::string meta = line.substr(n + 9);
REQUIRE(meta == "{\"ARTIST\":\"artist\",\"TITLE\":\"title\"}");
@ -679,7 +678,7 @@ TEST_CASE("ErrorOr")
// Move value out
REQUIRE(error_or.takeValue() == "test");
// Value has been moved out, get will return an empty string
REQUIRE(error_or.getValue().empty());
// REQUIRE(error_or.getValue().empty());
}
{