mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 23:09:44 -04:00
cli, refactor: simplify DetailsRequested()
The bounds check is no longer needed after the merge of PR 21192.
This commit is contained in:
parent
db36a92c02
commit
be82139b2a
1 changed files with 1 additions and 1 deletions
|
@ -404,7 +404,7 @@ private:
|
||||||
return UNKNOWN_NETWORK;
|
return UNKNOWN_NETWORK;
|
||||||
}
|
}
|
||||||
uint8_t m_details_level{0}; //!< Optional user-supplied arg to set dashboard details level
|
uint8_t m_details_level{0}; //!< Optional user-supplied arg to set dashboard details level
|
||||||
bool DetailsRequested() const { return m_details_level > 0 && m_details_level < 5; }
|
bool DetailsRequested() const { return m_details_level; }
|
||||||
bool IsAddressSelected() const { return m_details_level == 2 || m_details_level == 4; }
|
bool IsAddressSelected() const { return m_details_level == 2 || m_details_level == 4; }
|
||||||
bool IsVersionSelected() const { return m_details_level == 3 || m_details_level == 4; }
|
bool IsVersionSelected() const { return m_details_level == 3 || m_details_level == 4; }
|
||||||
bool m_outbound_only_selected{false};
|
bool m_outbound_only_selected{false};
|
||||||
|
|
Loading…
Add table
Reference in a new issue