Skip to content

Commit

Permalink
remove useless none fills
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjlockwood committed Mar 12, 2017
1 parent 17c7277 commit 5d4fc31
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
5 changes: 1 addition & 4 deletions src/app/scripts/svgo/plugins/removeComments.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* tslint:disable */

export const removeComments = {
active: true,
type: 'perItem',
Expand All @@ -18,9 +16,8 @@ export const removeComments = {
* @return {Boolean} if false, item will be filtered out
*/
function removeCommentsFn(item) {

if (item.comment && item.comment.charAt(0) !== '!') {
return false;
}
return undefined;
};
}
4 changes: 1 addition & 3 deletions src/app/scripts/svgo/plugins/removeDoctype.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* tslint:disable */

export const removeDoctype = {
active: true,
type: 'perItem',
Expand Down Expand Up @@ -35,4 +33,4 @@ function removeDoctypeFn(item) {
return false;
}
return undefined;
};
}
2 changes: 1 addition & 1 deletion src/app/scripts/svgo/plugins/removeEmptyAttrs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ function removeEmptyAttrsFn(item) {
}
});
}
};
}
2 changes: 1 addition & 1 deletion src/app/scripts/svgo/plugins/removeUselessStrokeAndFill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const removeUselessStrokeAndFill = {
params: {
stroke: true,
fill: true,
removeNone: false,
removeNone: true,
hasStyleOrScript: false
},
};
Expand Down

0 comments on commit 5d4fc31

Please sign in to comment.