mirror of
https://github.com/google/material-design-lite.git
synced 2024-10-26 13:11:30 +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