Skip to content

Commit

Permalink
redundant else
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiud committed Feb 5, 2024
1 parent 772e325 commit 8f89392
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/glog/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -720,10 +720,10 @@ std::unique_ptr<std::string> MakeCheckOpString(const T1& v1, const T2& v2,
template <typename T1, typename T2> \
inline std::unique_ptr<std::string> name##Impl(const T1& v1, const T2& v2, \
const char* exprtext) { \
if (GOOGLE_PREDICT_TRUE(v1 op v2)) \
if (GOOGLE_PREDICT_TRUE(v1 op v2)) { \
return nullptr; \
else \
return MakeCheckOpString(v1, v2, exprtext); \
} \
return MakeCheckOpString(v1, v2, exprtext); \
} \
inline std::unique_ptr<std::string> name##Impl(int v1, int v2, \
const char* exprtext) { \
Expand Down

0 comments on commit 8f89392

Please sign in to comment.