Skip to content

Commit

Permalink
add Clone() function
Browse files Browse the repository at this point in the history
  • Loading branch information
cody-wang-cb committed May 13, 2024
1 parent be6629e commit eadc24e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions op-node/rollup/derive/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ func (algo *CompressionAlgo) Set(value string) error {
return nil
}

func (algo *CompressionAlgo) Clone() any {
cpy := *algo
return &cpy
}

func (algo *CompressionAlgo) IsBrotli() bool {
return brotliRegexp.MatchString(algo.String())
}
Expand Down

0 comments on commit eadc24e

Please sign in to comment.