add braces to some blocks
This commit is contained in:
@@ -327,14 +327,17 @@ class Reader {
|
|||||||
case Some(exp):
|
case Some(exp):
|
||||||
array.push(exp);
|
array.push(exp);
|
||||||
case None:
|
case None:
|
||||||
if (allowEof) return array;
|
if (allowEof) { return array; }
|
||||||
else throw new StreamError(startingPos, 'Ran out of expressions before $end was found.');
|
else throw new StreamError(startingPos, 'Ran out of expressions before $end was found.');
|
||||||
}
|
}
|
||||||
} catch (s:UnmatchedBracketSignal) {
|
} catch (s:UnmatchedBracketSignal) {
|
||||||
if (s.type == end)
|
if (s.type == end) {
|
||||||
break;
|
break;
|
||||||
else
|
}
|
||||||
|
else {
|
||||||
|
|
||||||
throw s;
|
throw s;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user