summaryrefslogtreecommitdiffstats
path: root/src/PatchageCanvas.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-27 17:57:57 +0100
committerDavid Robillard <d@drobilla.net>2020-11-27 21:42:51 +0100
commitb04fa862a1daeabd0a60a479cb5e3cacac4c94b2 (patch)
tree39544d105c5a0087aef8984599680be094480d91 /src/PatchageCanvas.cpp
parent1be7c1b92c06880cf21f79cfa5419240f14e4fa4 (diff)
downloadpatchage-b04fa862a1daeabd0a60a479cb5e3cacac4c94b2.tar.gz
patchage-b04fa862a1daeabd0a60a479cb5e3cacac4c94b2.tar.bz2
patchage-b04fa862a1daeabd0a60a479cb5e3cacac4c94b2.zip
Don't use else after return
I don't always agree with this one, but in this case it's reasonable enough.
Diffstat (limited to 'src/PatchageCanvas.cpp')
-rw-r--r--src/PatchageCanvas.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp
index e081acb..7a75046 100644
--- a/src/PatchageCanvas.cpp
+++ b/src/PatchageCanvas.cpp
@@ -60,7 +60,9 @@ PatchageCanvas::find_module(const std::string& name, ModuleType type)
++j) {
if (j->second->type() == type) {
return j->second;
- } else if (j->second->type() == ModuleType::input_output) {
+ }
+
+ if (j->second->type() == ModuleType::input_output) {
io_module = j->second;
}
}