Skip to content

Commit

Permalink
style: style
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyTWF committed Apr 14, 2024
1 parent b199bd9 commit 5a902ad
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/utils/log/ApiLogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ namespace UKControllerPluginUtils::Log {

struct ApiLogger::Impl
{
[[nodiscard]] auto
CreatePayloadNoMetadata(const std::string& type, const std::string& message) const -> nlohmann::json
[[nodiscard]] auto CreatePayloadNoMetadata(const std::string& type, const std::string& message) const
-> nlohmann::json
{
return {{"type", type}, {"message", message}, {"metadata", PluginVersionMetadata().dump()}};
}

[[nodiscard]] auto CreatePayload(
const std::string& type, const std::string& message, const nlohmann::json& metadata) const -> nlohmann::json
[[nodiscard]] auto
CreatePayload(const std::string& type, const std::string& message, const nlohmann::json& metadata) const
-> nlohmann::json
{
auto metadataWithVersion = PluginVersionMetadata();
metadataWithVersion.update(metadata);
Expand Down

0 comments on commit 5a902ad

Please sign in to comment.