rest: replace rf_names[0].rf by RESTResponseFormat::UNDEF for code clarity #32884

pull eval-exec wants to merge 1 commits into bitcoin:master from eval-exec:exec/rest-ParseDataFormat-improve changing 1 files +2 −2
  1. eval-exec commented at 3:22 am on July 6, 2025: contributor
    I’m reviewing the bitcoin’s rest.cpp source code. In the function: ParseDataFormat, rf_names[0].rf is actualy RESTResponseFormat::UNDEF: https://github.com/bitcoin/bitcoin/blob/e3f416dbf7633b2fb19c933e5508bd231cc7e9cf/src/rest.cpp#L48-L57 so it would be more clarity and code readability to use return RESTResponseFormat::UNDEF; to replace return rf_names[0].rf;
  2. rest: replace `rf_names[0].rf` by `RESTResponseFormat::UNDEF` for code clarity 6d19815cd4
  3. DrahtBot added the label RPC/REST/ZMQ on Jul 6, 2025
  4. DrahtBot commented at 3:22 am on July 6, 2025: contributor

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/32884.

    Reviews

    See the guideline for information on the review process. A summary of reviews will appear here.

  5. eval-exec commented at 8:03 am on July 7, 2025: contributor
    Friendly request @fanquake to review this PR.

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-08 00:13 UTC

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