diff --git a/common/str_compat.hpp b/common/str_compat.hpp index b9341775..e0ea5343 100644 --- a/common/str_compat.hpp +++ b/common/str_compat.hpp @@ -72,7 +72,7 @@ static int stoi(const std::string& str, int def) { return cpt::stoi(str); } - catch(...) + catch (...) { return def; } diff --git a/server/streamreader/pcm_stream.cpp b/server/streamreader/pcm_stream.cpp index 7d6c59ad..4fe0cadb 100644 --- a/server/streamreader/pcm_stream.cpp +++ b/server/streamreader/pcm_stream.cpp @@ -166,9 +166,7 @@ json PcmStream::toJson() const state = "disabled"; json j = { - {"uri", uri_.toJson()}, - {"id", getId()}, - {"status", state}, + {"uri", uri_.toJson()}, {"id", getId()}, {"status", state}, }; if (meta_) diff --git a/server/streamreader/pipe_stream.cpp b/server/streamreader/pipe_stream.cpp index cbdabede..6d9f1263 100644 --- a/server/streamreader/pipe_stream.cpp +++ b/server/streamreader/pipe_stream.cpp @@ -64,4 +64,3 @@ void PipeStream::disconnect() { stream_->close(); } -