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:
committed by
Luis Díaz Más
parent
f956a398ad
commit
fdf9d3799c
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user