Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

Commit

Permalink
Address nits
Browse files Browse the repository at this point in the history
  • Loading branch information
xichen2020 committed Nov 1, 2017
1 parent a137c52 commit e47f4d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions policy/aggregation_id_compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ func (c *aggregationIDCompressor) Compress(aggTypes AggregationTypes) (Aggregati

func (c *aggregationIDCompressor) MustCompress(aggTypes AggregationTypes) AggregationID {
id, err := c.Compress(aggTypes)
if err == nil {
return id
if err != nil {
panic(fmt.Errorf("unable to compress %v: %v", aggTypes, err))
}
panic(fmt.Errorf("unable to compress %v: %v", aggTypes, err))
return id
}

type aggregationIDDecompressor struct {
Expand Down

0 comments on commit e47f4d2

Please sign in to comment.