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";
}
else
{
return os << e.value();
}
}
} // namespace sqlpp
#endif

View File

@ -71,18 +71,14 @@ namespace sqlpp
{
return t.is_null();
}
else
{
if (t.is_null())
{
return false;
}
else
{
return t._is_trivial();
}
}
}
};
template <typename Expr, typename Enable = void>

View File

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