mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-21 23:00:42 -08:00
chore: run go fmt (#2897)
This commit is contained in:
@@ -54,7 +54,7 @@ Vulnerability DB:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Check flag and command for print version
|
// Check flag and command for print version
|
||||||
func TestPrintVersion(t *testing.T) {
|
func TestPrintVersion(t *testing.T) {
|
||||||
tableOutput := `Version: test
|
tableOutput := `Version: test
|
||||||
Vulnerability DB:
|
Vulnerability DB:
|
||||||
|
|||||||
3
rpc/cache/service.twirp.go
vendored
3
rpc/cache/service.twirp.go
vendored
@@ -1484,8 +1484,11 @@ func sanitizeBaseURL(baseURL string) string {
|
|||||||
|
|
||||||
// baseServicePath composes the path prefix for the service (without <Method>).
|
// baseServicePath composes the path prefix for the service (without <Method>).
|
||||||
// e.g.: baseServicePath("/twirp", "my.pkg", "MyService")
|
// e.g.: baseServicePath("/twirp", "my.pkg", "MyService")
|
||||||
|
//
|
||||||
// returns => "/twirp/my.pkg.MyService/"
|
// returns => "/twirp/my.pkg.MyService/"
|
||||||
|
//
|
||||||
// e.g.: baseServicePath("", "", "MyService")
|
// e.g.: baseServicePath("", "", "MyService")
|
||||||
|
//
|
||||||
// returns => "/MyService/"
|
// returns => "/MyService/"
|
||||||
func baseServicePath(prefix, pkg, service string) string {
|
func baseServicePath(prefix, pkg, service string) string {
|
||||||
fullServiceName := service
|
fullServiceName := service
|
||||||
|
|||||||
@@ -645,8 +645,11 @@ func sanitizeBaseURL(baseURL string) string {
|
|||||||
|
|
||||||
// baseServicePath composes the path prefix for the service (without <Method>).
|
// baseServicePath composes the path prefix for the service (without <Method>).
|
||||||
// e.g.: baseServicePath("/twirp", "my.pkg", "MyService")
|
// e.g.: baseServicePath("/twirp", "my.pkg", "MyService")
|
||||||
|
//
|
||||||
// returns => "/twirp/my.pkg.MyService/"
|
// returns => "/twirp/my.pkg.MyService/"
|
||||||
|
//
|
||||||
// e.g.: baseServicePath("", "", "MyService")
|
// e.g.: baseServicePath("", "", "MyService")
|
||||||
|
//
|
||||||
// returns => "/MyService/"
|
// returns => "/MyService/"
|
||||||
func baseServicePath(prefix, pkg, service string) string {
|
func baseServicePath(prefix, pkg, service string) string {
|
||||||
fullServiceName := service
|
fullServiceName := service
|
||||||
|
|||||||
Reference in New Issue
Block a user