Redundant else statements in SRC/logging.cpp #32830

issue Raimo33 openend this issue on June 29, 2025
  1. Raimo33 commented at 10:55 pm on June 29, 2025: none
    static std::optionalBCLog::Level GetLogLevel(std::string_view level_str) { if (level_str == “trace”) { return BCLog::Level::Trace; } else if (level_str == “debug”) { return BCLog::Level::Debug; } else if (level_str == “info”) { return BCLog::Level::Info; } else if (level_str == “warning”) { return BCLog::Level::Warning; } else if (level_str == “error”) { return BCLog::Level::Error; } else { return std::nullopt; } }
  2. l0rinc commented at 5:50 am on June 30, 2025: contributor
    Please stop spamming, this isn’t useful
  3. maflcko closed this on Jun 30, 2025

  4. bitcoin locked this on Jun 30, 2025


Raimo33 l0rinc


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-07-07 21:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me