0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Use clang-tidy to prevent else after return

This commit is contained in:
rbock 2017-09-10 15:12:45 +02:00
parent 6a9715b59d
commit 63b40527ee
3 changed files with 9 additions and 17 deletions

View File

@ -82,10 +82,8 @@ namespace sqlpp
{ {
return os << "NULL"; return os << "NULL";
} }
else
{ return os << e.value();
return os << e.value();
}
} }
} // namespace sqlpp } // namespace sqlpp
#endif #endif

View File

@ -71,17 +71,13 @@ namespace sqlpp
{ {
return t.is_null(); return t.is_null();
} }
else
if (t.is_null())
{ {
if (t.is_null()) return false;
{
return false;
}
else
{
return t._is_trivial();
}
} }
return t._is_trivial();
} }
}; };

View File

@ -57,10 +57,8 @@ namespace sqlpp
} }
return retVal; return retVal;
} }
else
{ return arg;
return arg;
}
} }
std::ostream& _os; std::ostream& _os;