Redundant else statements in SRC/logging.cpp #32830

issue Raimo33 opened 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
Contributors

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: 2026-05-02 15:12 UTC

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