Fix formating

This commit is contained in:
Patrick Niklaus 2017-11-01 13:40:38 +00:00 committed by Patrick Niklaus
parent e197dae54d
commit 0b6eb85106

View File

@ -121,12 +121,13 @@ inline bool haveSameMode(const RouteStep &first, const RouteStep &second, const
// alias for readability
inline bool haveSameName(const RouteStep &lhs, const RouteStep &rhs)
{
const auto has_name_or_ref = [](auto const& step) {
const auto has_name_or_ref = [](auto const &step) {
return !step.name.empty() || !step.ref.empty();
};
// make sure empty is not involved
if (!has_name_or_ref(lhs) || !has_name_or_ref(rhs)) {
if (!has_name_or_ref(lhs) || !has_name_or_ref(rhs))
{
return false;
}