Skip to content

Commit

Permalink
cmd/gateway: disable compression (#4042)
Browse files Browse the repository at this point in the history
Since the gateway is not set to enable compression, returning true or
false will ultimately not compress. This is the expected behavior, but
returning false direct here would be clearer.
  • Loading branch information
zhijian-pro authored Sep 12, 2023
1 parent 7d9b06a commit f528a22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/gateway/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ type jfsObjects struct {
}

func (n *jfsObjects) IsCompressionSupported() bool {
return n.conf.Chunk.Compress != "" && n.conf.Chunk.Compress != "none"
return false
}

func (n *jfsObjects) IsEncryptionSupported() bool {
Expand Down

0 comments on commit f528a22

Please sign in to comment.