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) {
|
||||
tableOutput := `Version: test
|
||||
Vulnerability DB:
|
||||
|
||||
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 != "" {
|
||||
|
||||
@@ -645,9 +645,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