Skip to content

Commit

Permalink
don't call url.QueryEscape twice
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhengl committed Dec 18, 2024
1 parent 8d28d72 commit 2aa59da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,7 @@ func (o *Options) shardName(n int) string {
}

func (o *Options) shardNameVersion(version, n int) string {
prefix := url.QueryEscape(cmp.Or(o.ShardPrefix, o.RepositoryDescription.Name))
return zoekt.ShardName(o.IndexDir, prefix, version, n)
return zoekt.ShardName(o.IndexDir, cmp.Or(o.ShardPrefix, o.RepositoryDescription.Name), version, n)
}

type IndexState string
Expand Down

0 comments on commit 2aa59da

Please sign in to comment.