Remove empty string obfuscation

dependabot/npm_and_yarn/Src/WebController/UI/websocket-extensions-0.1.4
Grzegorz Rychlik 2020-03-05 12:14:07 +01:00
parent 3426f8da5b
commit 698b3d4ac7
3 changed files with 4 additions and 4 deletions

View File

@ -167,6 +167,6 @@ MWR::ServerSocket::ServerSocket(std::string_view addr, uint16_t port)
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
MWR::ServerSocket::ServerSocket(uint16_t port)
: ServerSocket(OBF(""), port)
: ServerSocket("", port)
{
}

View File

@ -121,7 +121,7 @@ std::shared_ptr<MWR::C3::Relay> MWR::C3::Utils::CreateNodeRelayFromImagePatch(Lo
std::string MWR::C3::Utils::ConvertLogMessageToConsoleText(std::string_view relayName, LogMessage const& message, std::string_view* sender)
{
// Format message as: "[relay]|@> [InterfaceID] message", where @ is different for each severity.
std::string retVal = sender ? (std::string(relayName) + '|').c_str() : OBF("");
std::string retVal = sender ? (std::string(relayName) + '|').c_str() : "";
switch (message.m_Severity)
{
@ -132,6 +132,6 @@ std::string MWR::C3::Utils::ConvertLogMessageToConsoleText(std::string_view rela
default: retVal += OBF("???> ");
}
retVal += sender && !sender->empty() ? '[' + std::string(*sender) + OBF("] ") : OBF("");
retVal += sender && !sender->empty() ? '[' + std::string(*sender) + OBF("] ") : "";
return retVal += message.m_Body;
}

View File

@ -14,7 +14,7 @@ MWR::C3::Core::Distributor::Distributor(LoggerCallback callbackOnLog, Crypto::Pr
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void MWR::C3::Core::Distributor::Log(LogMessage const& message, DeviceId sender) noexcept
{
m_CallbackOnLog(message, &std::string_view{ sender.IsNull() ? OBF("") : sender.ToString() });
m_CallbackOnLog(message, &std::string_view{ sender.IsNull() ? "" : sender.ToString() });
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////