Skip to content

Commit

Permalink
pk/compression: Correct a few gofmt errors from systembrotli
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Goegebuer <[email protected]>
  • Loading branch information
iangoegebuer authored and orangecms committed Jan 29, 2024
1 parent 47d6aeb commit 9578087
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/compression/compression.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func CompressorFromGUID(guid *guid.GUID) Compressor {
}
switch *guid {
case BROTLIGUID:
return &SystemBROTLI{*brotliPath};
return &SystemBROTLI{*brotliPath}
case LZMAGUID:
return lzma
case LZMAX86GUID:
Expand Down
2 changes: 1 addition & 1 deletion pkg/compression/systembrotli.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (c *SystemBROTLI) Encode(decodedData []byte) ([]byte, error) {
}

// This seems to be the buffer size needed by the UEFI decompressor
header := []byte{0x00, 0x00, 0x00, 0x02,0,0,0,0}
header := []byte{0x00, 0x00, 0x00, 0x02, 0, 0, 0, 0}

header = append(buf.Bytes(), header...)

Expand Down

0 comments on commit 9578087

Please sign in to comment.