Skip to content

Commit

Permalink
Fix error formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
josephschorr committed Sep 1, 2024
1 parent 1c3fd0e commit 241a762
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/datastore/common/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func NewCreateRelationshipExistsError(relationship *core.RelationTuple) error {
}

return CreateRelationshipExistsError{
fmt.Errorf(msg),
errors.New(msg),
relationship,
}
}
Expand Down
2 changes: 1 addition & 1 deletion internal/datastore/proxy/hedging.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func newHedgingProxyWithTimeSource(
}

if maxSampleCount < minMaxRequestsThreshold {
return nil, fmt.Errorf(fmt.Sprintf("maxSampleCount must be >=%d", minMaxRequestsThreshold))
return nil, fmt.Errorf("maxSampleCount must be >=%d", minMaxRequestsThreshold)
}

if hedgingQuantile <= 0.0 || hedgingQuantile >= 1.0 {
Expand Down

0 comments on commit 241a762

Please sign in to comment.