mirror of
https://github.com/google/material-design-lite.git
synced 2024-08-16 15:50:34 +03:00
🔨 Harden unwrapping logic.
No longer bombs for non-compliant files.
This commit is contained in:
parent
3d9b1cbab2
commit
673604b374
@ -34,7 +34,8 @@ function uniffe(contents) {
|
||||
|
||||
escodegen.attachComments(ast, comments, tokens);
|
||||
|
||||
if (ast.body[0].expression.callee === undefined) {
|
||||
if (ast.body[0].expression === undefined ||
|
||||
ast.body[0].expression.callee === undefined) {
|
||||
return contents;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user