mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 15:50:15 -08:00
chore: run go fmt (#2897)
This commit is contained in:
7
rpc/cache/service.twirp.go
vendored
7
rpc/cache/service.twirp.go
vendored
@@ -1484,9 +1484,12 @@ func sanitizeBaseURL(baseURL string) string {
|
||||
|
||||
// baseServicePath composes the path prefix for the service (without <Method>).
|
||||
// e.g.: baseServicePath("/twirp", "my.pkg", "MyService")
|
||||
// returns => "/twirp/my.pkg.MyService/"
|
||||
//
|
||||
// returns => "/twirp/my.pkg.MyService/"
|
||||
//
|
||||
// e.g.: baseServicePath("", "", "MyService")
|
||||
// returns => "/MyService/"
|
||||
//
|
||||
// returns => "/MyService/"
|
||||
func baseServicePath(prefix, pkg, service string) string {
|
||||
fullServiceName := service
|
||||
if pkg != "" {
|
||||
|
||||
Reference in New Issue
Block a user