fix syntax in osm2meta.cpp

Signed-off-by: Wojciech Sipak <wsipak@protonmail.com>
This commit is contained in:
Wojciech Sipak
2025-09-20 16:27:48 +00:00
committed by x7z4w
parent 39260bbc6c
commit 0ef547daa6

View File

@@ -87,7 +87,7 @@ bool Prefix2Double(std::string const & str, double & d)
void MetadataTagProcessorImpl::AggregateChargeSocket(std::string const & k, std::string const & v) void MetadataTagProcessorImpl::AggregateChargeSocket(std::string const & k, std::string const & v)
{ {
auto keys = strings::Tokenize(k, ":"); auto keys = strings::Tokenize(k, ":");
ASSERT(keys[0] == "socket", ()) // key must start with "socket:" ASSERT(keys[0] == "socket", ()); // key must start with "socket:"
if (keys.size() < 2 || keys.size() > 3) if (keys.size() < 2 || keys.size() > 3)
{ {
LOG(LWARNING, ("Invalid socket key:", k)); LOG(LWARNING, ("Invalid socket key:", k));
@@ -139,7 +139,7 @@ void MetadataTagProcessorImpl::AggregateChargeSocket(std::string const & k, std:
it = std::prev(m_chargeSockets.end()); it = std::prev(m_chargeSockets.end());
} }
ASSERT(v.size() > 0, "empty value for socket key!"); ASSERT(v.size() > 0, ("empty value for socket key!"));
if (!isOutput) if (!isOutput)
{ {