summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/Ecc
diff options
context:
space:
mode:
authorPierre Gondois <pierre.gondois@arm.com>2025-04-30 10:06:21 +0200
committerLiming Gao <gaoliming@byosoft.com.cn>2025-07-01 09:51:38 +0800
commitc169a5420b25f6e95e1ca8223051aade870f0d03 (patch)
tree60c26ad8659ed89cbe6b7e9adacdece017f22b47 /BaseTools/Source/Python/Ecc
parentf54fe78d9a1a760bdfd50131221cb93916ce5865 (diff)
downloadedk2-c169a5420b25f6e95e1ca8223051aade870f0d03.zip
edk2-c169a5420b25f6e95e1ca8223051aade870f0d03.tar.gz
edk2-c169a5420b25f6e95e1ca8223051aade870f0d03.tar.bz2
BaseTools: Remove unreachable code
Running the vulture tool gave the following report. Remove the unreachable code. - TargetTool/TargetTool.py:49: unreachable code after 'raise' (100% confidence) - UPT/Library/UniClassObject.py:137: unreachable code after 'return' (100% confidence) - UPT/Object/Parser/InfDefineObject.py:795: unreachable code after 'if' (100% confidence) - Ecc/Check.py:1504: unreachable code after 'return' (100% confidence) Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Diffstat (limited to 'BaseTools/Source/Python/Ecc')
-rw-r--r--BaseTools/Source/Python/Ecc/Check.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Ecc/Check.py b/BaseTools/Source/Python/Ecc/Check.py
index 160e803..c31ee70 100644
--- a/BaseTools/Source/Python/Ecc/Check.py
+++ b/BaseTools/Source/Python/Ecc/Check.py
@@ -1501,7 +1501,6 @@ def FindPara(FilePath, Para, CallingLine):
if Line.startswith('%s = ' % Para):
Line = Line.strip()
return Line
- break
return ''