Skip to content

Commit

Permalink
explicitly ignore the error in create-ffs
Browse files Browse the repository at this point in the history
It is not clear why it is ok to ignore this error, but
that is original code.

Signed-off-by: Ronald G. Minnich <[email protected]>
  • Loading branch information
rminnich committed Sep 17, 2024
1 parent f45b9bc commit c36f1e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmds/create-ffs/create-ffs.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ func main() {
mainSection := &uefi.Section{}
mainSection.SetType(secType)
mainSection.SetBuf(secData)
mainSection.GenSecHeader()
// It is not clear why the author felt it was OK to ignore
// the error.
_ = mainSection.GenSecHeader()
file.Sections = append(file.Sections, mainSection)
printf("selected section type: %v", mainSection.Header.Type)

Expand Down

0 comments on commit c36f1e3

Please sign in to comment.