Merge pull request #6627 from hashicorp/follow_uop_to_6534

remove unused argument
This commit is contained in:
Megan Marsh 2018-08-24 14:24:34 -07:00 committed by GitHub
commit a93b9ce45c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ func (p *PostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (pac
case "xz":
ui.Say(fmt.Sprintf("Using xz compression with 1 core for %s (library does not support MT)",
target))
output, err = makeXZWriter(outputFile, p.config.CompressionLevel)
output, err = makeXZWriter(outputFile)
defer output.Close()
case "pgzip":
ui.Say(fmt.Sprintf("Using pgzip compression with %d cores for %s",
@ -280,7 +280,7 @@ func makeLZ4Writer(output io.WriteCloser, compressionLevel int) (io.WriteCloser,
return lzwriter, nil
}
func makeXZWriter(output io.WriteCloser, compressionLevel int) (io.WriteCloser, error) {
func makeXZWriter(output io.WriteCloser) (io.WriteCloser, error) {
xzwriter, err := xz.NewWriter(output)
if err != nil {
return nil, err