Skip to content

Commit

Permalink
Revert "fix(sketch): add undefined exception handler in icon generate…
Browse files Browse the repository at this point in the history
… script (carbon-design-system#5583)"

This reverts commit 83b766e.
  • Loading branch information
renmaddox authored Mar 20, 2020
1 parent 6d917a5 commit d6fefb5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion packages/sketch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"build": "cross-env NODE_ENV=production skpm-build",
"clean": "rimraf carbon-elements.sketchplugin",
"develop": "cross-env NODE_ENV=development skpm-build --watch",
"log": "skpm log -f",
"skpm:link": "skpm-link"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/sketch/src/commands/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function command(name, fn) {
sketch.UI.message('Done! 🎉');
} catch (error) {
console.log(error);
sketch.UI.message('An error occurred, please check the development logs');
sketch.UI.message('An error occured, please check the development logs');
}

if (process.env.NODE_ENV === 'development') {
Expand Down
5 changes: 0 additions & 5 deletions packages/sketch/src/commands/icons/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ export function generate() {
const [_type, _category, _subcategory, name, size] = parts;
return name === icon && size === '32';
});

if (!symbol) {
throw new Error(`Unable to find symbol for icon ${icon}!`);
}

const instance = symbol.createNewInstance();
instance.frame.offset(ICON_X_OFFSET, ICON_Y_OFFSET);

Expand Down

0 comments on commit d6fefb5

Please sign in to comment.