Fixed format

This commit is contained in:
emeric
2024-09-02 08:07:31 +02:00
parent cb4014b0e5
commit 7392f9b5da
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -224,7 +224,7 @@ namespace lms::db
throw Exception{ "Label name is too long: " + std::string{ name } + "'" }; throw Exception{ "Label name is too long: " + std::string{ name } + "'" };
} }
Label::pointer Label::create(Session& session, std::string_view name) Label::pointer Label::create(Session& session, std::string_view name)
{ {
return session.getDboSession()->add(std::unique_ptr<Label>{ new Label{ name } }); return session.getDboSession()->add(std::unique_ptr<Label>{ new Label{ name } });
} }
+1 -2
View File
@@ -195,8 +195,7 @@ namespace lms::api::subsonic
} }
albumNode.createEmptyArrayChild("recordLabels"); albumNode.createEmptyArrayChild("recordLabels");
release->visitLabels([&](const Label::pointer& label) release->visitLabels([&](const Label::pointer& label) {
{
albumNode.addArrayChild("recordLabels", createRecordLabel(label)); albumNode.addArrayChild("recordLabels", createRecordLabel(label));
}); });