summaryrefslogtreecommitdiffstats
path: root/ingen/Node.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'ingen/Node.hpp')
-rw-r--r--ingen/Node.hpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/ingen/Node.hpp b/ingen/Node.hpp
index 640b63cf..c09a6fdd 100644
--- a/ingen/Node.hpp
+++ b/ingen/Node.hpp
@@ -89,10 +89,8 @@ public:
const size_t root_len = root_graph_uri().length();
if (uri == root_graph_uri()) {
return true;
- } else if (uri.substr(0, root_len + 1) != root_graph_uri() + "/") {
- return false;
} else {
- return Raul::URI::is_valid(uri.substr(root_len));
+ return uri.substr(0, root_len + 1) == root_graph_uri() + "/";
}
}