Skip to content

Commit adb3616

Browse files
committed
feat: remove the ineffective Return value
1 parent abe1b9c commit adb3616

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

webf/lib/src/svg/rendering/shape.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ abstract class RenderSVGShape extends RenderBoxModel {
109109
var element = renderStyle.target as SVGElement;
110110
dynamic fillAttr = element.attributeStyle['fill'] ?? findRoot()?.element.attributeStyle['fill'];
111111
dynamic clipPathAttr = element.attributeStyle['clipPath'] ?? findRoot()?.element.attributeStyle['clipPath'];
112-
if (fillAttr == null && clipPathAttr == null) return null;
112+
if (fillAttr == null && clipPathAttr == null) return;
113113

114114
NodeList? nodeList = element.findRoot()?.childNodes;
115115
if (nodeList != null) {
@@ -126,7 +126,6 @@ abstract class RenderSVGShape extends RenderBoxModel {
126126
}
127127
}
128128
}
129-
return null;
130129
}
131130

132131
Shader? _shader;

0 commit comments

Comments
 (0)