mirror of https://github.com/acidanthera/audk.git
BaseTools: Remove the unnecessary check for RAW File
Because the __VerifyFile function already checked whether the file is valid. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
877c0a93be
commit
4fa7b3301e
|
@ -2731,8 +2731,6 @@ class FdfParser:
|
||||||
if FileName == '}':
|
if FileName == '}':
|
||||||
self.__UndoToken()
|
self.__UndoToken()
|
||||||
raise Warning("expected Filename value", self.FileName, self.CurrentLineNumber)
|
raise Warning("expected Filename value", self.FileName, self.CurrentLineNumber)
|
||||||
elif not os.path.isfile(FileName):
|
|
||||||
raise Warning("expected '}'", self.FileName, self.CurrentLineNumber)
|
|
||||||
|
|
||||||
self.__VerifyFile(FileName)
|
self.__VerifyFile(FileName)
|
||||||
File = PathClass(NormPath(FileName), GenFdsGlobalVariable.WorkSpaceDir)
|
File = PathClass(NormPath(FileName), GenFdsGlobalVariable.WorkSpaceDir)
|
||||||
|
|
Loading…
Reference in New Issue