]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/Workspace/InfBuildData.py
BaseTools: remove redundant if comparison
authorCarsey, Jaben <jaben.carsey@intel.com>
Fri, 20 Apr 2018 15:51:42 +0000 (23:51 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Wed, 2 May 2018 07:02:20 +0000 (15:02 +0800)
commitc93356ada99e6f8083a64f99d162b44a2765ce63
tree1bb64928b259fc66d7e8512a116a758b33a465a1
parent1beb268a686344d92f42ced656edf46c626e9413
BaseTools: remove redundant if comparison

inherently python will check string and list for None and having data

if <x> in [None, ''] and similar are superflous.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
BaseTools/Source/Python/AutoGen/AutoGen.py
BaseTools/Source/Python/AutoGen/GenC.py
BaseTools/Source/Python/GenFds/FfsInfStatement.py
BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py
BaseTools/Source/Python/Workspace/DscBuildData.py
BaseTools/Source/Python/Workspace/InfBuildData.py