From c13cc1d1180961a8b819024c0644dc1598132eed Mon Sep 17 00:00:00 2001 From: Bartek Kryza Date: Sat, 24 Dec 2022 14:58:06 +0100 Subject: [PATCH] Applied llvm-else-after-return clang-tidy fixes --- src/decorators/decorators.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/decorators/decorators.cc b/src/decorators/decorators.cc index 3a2b05b8..0e17817d 100644 --- a/src/decorators/decorators.cc +++ b/src/decorators/decorators.cc @@ -38,13 +38,13 @@ std::shared_ptr decorator::from_string(std::string_view c) if (c.find(style::label) == 0) { return style::from_string(c); } - else if (c.find(aggregation::label) == 0) { + if (c.find(aggregation::label) == 0) { return aggregation::from_string(c); } - else if (c.find(composition::label) == 0) { + if (c.find(composition::label) == 0) { return composition::from_string(c); } - else if (c.find(association::label) == 0) { + if (c.find(association::label) == 0) { return association::from_string(c); }