Skip to content

Commit 5f89d64

Browse files
committed
clean up code
1 parent 0f91510 commit 5f89d64

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libsrc/api/JsonAPI.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,6 @@ void JsonAPI::handleGetImageSnapshotCommand(const QJsonObject &message, const Js
405405
{
406406
QString replyMsg;
407407
QString filetype = message["filetype"].toString();
408-
const QStringList fileTypes{"BMP", "JPG", "PNG"};
409408
const PriorityMuxer::InputInfo priorityInfo = _hyperion->getPriorityInfo(_hyperion->getCurrentPriority());
410409
Image<ColorRgb> image = priorityInfo.image;
411410
QImage snapshot(reinterpret_cast<const uchar *>(image.memptr()), image.width(), image.height(), qsizetype(3) * image.width(), QImage::Format_RGB888);
@@ -466,7 +465,7 @@ void JsonAPI::handleInstanceDataCommand(const QJsonObject &message, const JsonAp
466465
handleGetLedSnapshotCommand(message, cmd);
467466
break;
468467
default:
469-
sendErrorReply("Unknown subcommand", cmd);
468+
break;
470469
}
471470
}
472471

0 commit comments

Comments
 (0)