mirror of
https://github.com/XRPLF/clio.git
synced 2026-08-22 21:20:52 +00:00
chore: Enable more clang-tidy checks (#3054)
This commit is contained in:
@@ -29,7 +29,7 @@ public:
|
||||
* @param ip The ip addr of the client
|
||||
* @return true if authorized; false otherwise
|
||||
*/
|
||||
virtual bool
|
||||
[[nodiscard]] virtual bool
|
||||
isAdmin(RequestHeader const& request, std::string_view ip) const = 0;
|
||||
};
|
||||
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
* @param ip The ip addr of the client
|
||||
* @return true if authorized; false otherwise
|
||||
*/
|
||||
bool
|
||||
[[nodiscard]] bool
|
||||
isAdmin(RequestHeader const&, std::string_view ip) const override;
|
||||
};
|
||||
|
||||
@@ -76,7 +76,7 @@ public:
|
||||
* @param request The request from a host
|
||||
* @return true if the password from request matches admin password from config
|
||||
*/
|
||||
bool
|
||||
[[nodiscard]] bool
|
||||
isAdmin(RequestHeader const& request, std::string_view) const override;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user