clang-tidy: don't use else after return

Found with llvm-else-after-return

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2021-05-13 19:02:57 -07:00
committed by Luis Díaz Más
parent f956a398ad
commit fdf9d3799c
17 changed files with 128 additions and 164 deletions
+2 -1
View File
@@ -104,7 +104,8 @@ Jzon::Node& addToTree(Jzon::Node& r1,Token token)
Jzon::Object& o1 = r1.AsObject();
if ( !o1.Has(key) ) o1.Add(key,empty);
return o1.Get(key);
} else if ( r1.IsArray() ) {
}
if (r1.IsArray()) {
Jzon::Array& a1 = r1.AsArray();
while ( a1.GetCount() <= index ) a1.Add(empty);
return a1.Get(index);