[qt] Remove excess logic: Prefer "return foo;" to "if (foo) { return true; } else { return false; }" #10421

pull practicalswift wants to merge 1 commits into bitcoin:master from practicalswift:if-expr-return-true-else-return-false changing 1 files +1 −3
  1. practicalswift commented at 4:36 PM on May 18, 2017: contributor

    Replace …

    if (foo) { return true; } else { return false; }
    

    … with the equivalent …

    return foo;
    

    The code was introduced in fbf385cc830df2aec7cdcbab0c2b09b46569e8c1 which was merged into master earlier today.

    Friendly ping @jonasschnelli :-)

  2. laanwj added the label Refactoring on May 18, 2017
  3. laanwj commented at 6:13 PM on May 18, 2017: member

    Can you please add somewhat more description to your commit message and PR? Please don't just drop PRs without any description or motivation.

  4. practicalswift renamed this:
    [qt] Remove excess logic
    [qt] Remove excess logic: Prefer "return foo;" to "if (foo) { return true; } else { return false; }"
    on May 18, 2017
  5. [qt] Remove excess logic
    Replace …
    
    ```
    if (foo) { return true; } else { return false; }
    ```
    
    … with the equivalent …
    
    ```
    return foo;
    ```
    e49b868cfe
  6. practicalswift force-pushed on May 18, 2017
  7. practicalswift commented at 6:51 PM on May 18, 2017: contributor

    @laanwj Fixed :-)

  8. jonasschnelli commented at 7:00 PM on May 18, 2017: contributor

    ACK e49b868cfe9391ec61b4fedef9811a4be265525d

  9. paveljanik commented at 7:18 PM on May 18, 2017: contributor

    utACK e49b868

  10. fanquake commented at 11:45 PM on May 18, 2017: member

    utACK e49b868

  11. laanwj merged this on May 23, 2017
  12. laanwj closed this on May 23, 2017

  13. laanwj referenced this in commit 433c57aa6f on May 23, 2017
  14. practicalswift deleted the branch on Apr 10, 2021
  15. DrahtBot locked this on Aug 18, 2022

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-04-16 15:15 UTC

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