summaryrefslogtreecommitdiff
path: root/core/string
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2020-12-08 20:58:49 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2020-12-09 10:17:53 +0200
commit644f73966002589c36d779fa33b9524a451f56e0 (patch)
tree58b5f8b90e48771dd211a39a8aeba231d6483475 /core/string
parent90bdba576af2d5f0a8ecdbef065d6ef0075bc2f2 (diff)
Static analyzer fixes:
Removes unused code in OS. Fixes return types. Fixes few typos.
Diffstat (limited to 'core/string')
-rw-r--r--core/string/node_path.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/string/node_path.cpp b/core/string/node_path.cpp
index 4d152d9258..a63dde5b41 100644
--- a/core/string/node_path.cpp
+++ b/core/string/node_path.cpp
@@ -288,7 +288,7 @@ void NodePath::simplify() {
if (data->path[i].operator String() == ".") {
data->path.remove(i);
i--;
- } else if (data->path[i].operator String() == ".." && i > 0 && data->path[i - 1].operator String() != "." && data->path[i - 1].operator String() != "..") {
+ } else if (i > 0 && data->path[i].operator String() == ".." && data->path[i - 1].operator String() != "." && data->path[i - 1].operator String() != "..") {
//remove both
data->path.remove(i - 1);
data->path.remove(i - 1);