Skip to content

Commit

Permalink
Fix tidy error
Browse files Browse the repository at this point in the history
  • Loading branch information
git-hulk committed Jan 21, 2024
1 parent 84f8423 commit 7fe776c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/redis_connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class Connection : public EvbufCallbackBase<Connection> {
RESP GetProtocolVersion() const { return protocol_version_; }
void SetProtocolVersion(RESP version) { protocol_version_ = version; }
std::string Bool(bool b) const;
std::string BigNumber(std::string n) const { return protocol_version_ == RESP::v3 ? "(" + n + CRLF : BulkString(n); }
std::string BigNumber(const std::string &n) const { return protocol_version_ == RESP::v3 ? "(" + n + CRLF : BulkString(n); }
std::string NilString() const { return redis::NilString(protocol_version_); }
std::string NilArray() const { return protocol_version_ == RESP::v3 ? "_" CRLF : "*-1" CRLF; }
std::string MultiBulkString(const std::vector<std::string> &values, bool output_nil_for_empty_string = true) const;
Expand Down

0 comments on commit 7fe776c

Please sign in to comment.