Skip to content

Commit 5d4fc31

Browse files
committed
remove useless none fills
1 parent 17c7277 commit 5d4fc31

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

src/app/scripts/svgo/plugins/removeComments.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* tslint:disable */
2-
31
export const removeComments = {
42
active: true,
53
type: 'perItem',
@@ -18,9 +16,8 @@ export const removeComments = {
1816
* @return {Boolean} if false, item will be filtered out
1917
*/
2018
function removeCommentsFn(item) {
21-
2219
if (item.comment && item.comment.charAt(0) !== '!') {
2320
return false;
2421
}
2522
return undefined;
26-
};
23+
}

src/app/scripts/svgo/plugins/removeDoctype.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* tslint:disable */
2-
31
export const removeDoctype = {
42
active: true,
53
type: 'perItem',
@@ -35,4 +33,4 @@ function removeDoctypeFn(item) {
3533
return false;
3634
}
3735
return undefined;
38-
};
36+
}

src/app/scripts/svgo/plugins/removeEmptyAttrs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ function removeEmptyAttrsFn(item) {
1919
}
2020
});
2121
}
22-
};
22+
}

src/app/scripts/svgo/plugins/removeUselessStrokeAndFill.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const removeUselessStrokeAndFill = {
99
params: {
1010
stroke: true,
1111
fill: true,
12-
removeNone: false,
12+
removeNone: true,
1313
hasStyleOrScript: false
1414
},
1515
};

0 commit comments

Comments
 (0)