output/Shout: remove unnecessary nullptr check

This commit is contained in:
Max Kellermann
2017-08-08 18:47:02 +02:00
parent 06c7e55188
commit d22361f7c7

View File

@@ -299,7 +299,6 @@ write_page(ShoutOutput *sd)
void
ShoutOutput::Close()
{
if (encoder != nullptr) {
try {
encoder->End();
write_page(this);
@@ -308,7 +307,6 @@ ShoutOutput::Close()
}
delete encoder;
}
if (shout_get_connected(shout_conn) != SHOUTERR_UNCONNECTED &&
shout_close(shout_conn) != SHOUTERR_SUCCESS) {