]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Workspace/InfBuildData.py
BaseTools: remove redundant if comparison
[mirror_edk2.git] / BaseTools / Source / Python / Workspace / InfBuildData.py
index cf5e1df3a523b7b70b57a4d6c28a83e913d534b7..602746de32f7d15ac59525a8ee3c97d44689782b 100644 (file)
@@ -1116,7 +1116,7 @@ class InfBuildData(ModuleBuildClassObject):
                     Pcd.DatumType = PcdInPackage.DatumType\r
                     Pcd.MaxDatumSize = PcdInPackage.MaxDatumSize\r
                     Pcd.InfDefaultValue = Pcd.DefaultValue\r
-                    if Pcd.DefaultValue in [None, '']:\r
+                    if not Pcd.DefaultValue:\r
                         Pcd.DefaultValue = PcdInPackage.DefaultValue\r
                     else:\r
                         try:\r