Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Nov 20, 2018
1 parent dc4c751 commit 04ce0d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/internal/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ export function clear(node: Node) {
export function concat<T>(arrs: (T[] | T)[]): T[] {
const r: T[] = [];
for (const a of arrs) {
if (Array.isArray(a)) {
for (const ai of a) {
r.push(ai);
}
} else {
if (!Array.isArray(a)) {
r.push(a);
continue;
}
for (const ai of a) {
r.push(ai);
}
}
return r;
Expand Down

0 comments on commit 04ce0d7

Please sign in to comment.