mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-20 01:47:36 +02:00
Fix linter warnings
This commit is contained in:
parent
66868e2501
commit
5c41afd9e3
31 changed files with 131 additions and 116 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue