mirror of https://github.com/acidanthera/audk.git
BaseTools: simplify if call
the variable is a string type since we just used .strip() on it. 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>
This commit is contained in:
parent
6b1f2cf41a
commit
b813843cca
|
@ -816,7 +816,7 @@ class ValueExpressionEx(ValueExpression):
|
|||
except BadExpression, Value:
|
||||
if self.PcdType in TAB_PCD_NUMERIC_TYPES:
|
||||
PcdValue = PcdValue.strip()
|
||||
if type(PcdValue) == type('') and PcdValue.startswith('{') and PcdValue.endswith('}'):
|
||||
if PcdValue.startswith('{') and PcdValue.endswith('}'):
|
||||
PcdValue = SplitPcdValueString(PcdValue[1:-1])
|
||||
if type(PcdValue) == type([]):
|
||||
TmpValue = 0
|
||||
|
|
Loading…
Reference in New Issue