From 3af246bb3291d8568f6d110884fa55ee5fd20221 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 18 Aug 2022 01:22:18 -0400 Subject: Avoid "else" after "return", "break", and "continue" --- src/client/GraphModel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client/GraphModel.cpp') diff --git a/src/client/GraphModel.cpp b/src/client/GraphModel.cpp index d4104742..7829a241 100644 --- a/src/client/GraphModel.cpp +++ b/src/client/GraphModel.cpp @@ -108,9 +108,9 @@ GraphModel::get_arc(const Node* tail, const Node* head) auto i = _arcs.find(std::make_pair(tail, head)); if (i != _arcs.end()) { return std::dynamic_pointer_cast(i->second); - } else { - return nullptr; } + + return nullptr; } /** Add a connection to this graph. -- cgit v1.2.1