From c2c5392e004bb8bafea84d8d69df31ef9f03d46f Mon Sep 17 00:00:00 2001
From: jim man <jimman2003>
Date: Thu, 29 Jul 2021 14:22:11 +0200
Subject: [PATCH] svg (official) addon: cleanup: Simpified a code path

Simpified a code path

The last return was never reached

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D11964
---
 io_curve_svg/import_svg.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py
index b98aacbb6..ac9a2260f 100644
--- a/io_curve_svg/import_svg.py
+++ b/io_curve_svg/import_svg.py
@@ -83,10 +83,7 @@ def SVGParseCoord(coord, size):
 
     if unit == '%':
         return float(size) / 100.0 * val
-    else:
-        return val * units[unit]
-
-    return val
+    return val * units[unit]
 
 
 def SVGRectFromNode(node, context):
-- 
GitLab