Skip to content

Commit

Permalink
use string::empty()
Browse files Browse the repository at this point in the history
  • Loading branch information
a114j0y committed Oct 8, 2024
1 parent 4036200 commit c032275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/redispipeline.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class RedisPipeline {
}

void publish() {
if (m_shaPub == "") {
if (m_shaPub.empty()) {
return;
}
RedisCommand cmd;
Expand Down

0 comments on commit c032275

Please sign in to comment.