Skip to content

Commit 3c9d9f8

Browse files
committed
chore(fmt): yet gofmt is everyone's favorite. by Rob Pike
1 parent ae411af commit 3c9d9f8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+119
-167
lines changed

cmd/cdk/cdk.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*
32
Copyright 2022 The Authors of https://github.com/CDK-TEAM/CDK .
43

conf/build_conf.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*
32
Copyright 2022 The Authors of https://github.com/CDK-TEAM/CDK .
43

conf/evaluate_conf.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*
32
Copyright 2022 The Authors of https://github.com/CDK-TEAM/CDK .
43

conf/exploit_conf.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*
32
Copyright 2022 The Authors of https://github.com/CDK-TEAM/CDK .
43
@@ -55,4 +54,3 @@ var K8sSATokenDefaultPath = "/var/run/secrets/kubernetes.io/serviceaccount/token
5554
var WebShellCodeJSP = "<%Runtime.getRuntime().exec(request.getParameter(\"$SECRET_PARAM\"));%>"
5655

5756
var WebShellCodePHP = "<?php @eval($_POST['$SECRET_PARAM']);?>"
58-

conf/message.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*
32
Copyright 2022 The Authors of https://github.com/CDK-TEAM/CDK .
43

conf/scanner_conf.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*
32
Copyright 2022 The Authors of https://github.com/CDK-TEAM/CDK .
43

pkg/cli/parse_test.go

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ import (
2929
)
3030

3131
type testArgsCase struct {
32-
name string
33-
args []string
32+
name string
33+
args []string
3434
successStr string
3535
}
3636

3737
func doParseCDKMainWithTimeout() {
3838

3939
result := make(chan bool, 1)
4040

41-
go func () {
41+
go func() {
4242
result <- cli.ParseCDKMain()
4343
}()
4444

@@ -47,32 +47,31 @@ func doParseCDKMainWithTimeout() {
4747
log.Println("check run ok, timeout in 2s, and return.")
4848
return
4949
case <-result:
50-
return
50+
return
5151
}
5252

5353
}
5454

5555
func TestParseCDKMain(t *testing.T) {
5656

57-
5857
// ./cdk eva 2>&1 | head
5958
// ./cdk run test-poc | head
6059
// ./cdk ifconfig | head
6160

6261
tests := []testArgsCase{
6362
{
64-
name: "./cdk eva",
65-
args: []string{"./cdk_cli_path", "eva"},
63+
name: "./cdk eva",
64+
args: []string{"./cdk_cli_path", "eva"},
6665
successStr: "current user",
6766
},
6867
{
69-
name: "./cdk run test-poc",
70-
args: []string{"./cdk_cli_path", "run", "test-poc"},
68+
name: "./cdk run test-poc",
69+
args: []string{"./cdk_cli_path", "run", "test-poc"},
7170
successStr: "run success",
7271
},
7372
{
74-
name: "./cdk ifconfig",
75-
args: []string{"./cdk_cli_path", "ifconfig"},
73+
name: "./cdk ifconfig",
74+
args: []string{"./cdk_cli_path", "ifconfig"},
7675
successStr: "GetLocalAddresses",
7776
},
7877
}
@@ -112,7 +111,6 @@ func TestParseCDKMain(t *testing.T) {
112111
t.Errorf(("parse cdk main failed, name: %s, args: %v, buf: %s"), tt.name, tt.args, str)
113112
}
114113

115-
116114
})
117115

118116
// return to os.Stdout default

pkg/errors/errors.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*
32
Copyright 2022 The Authors of https://github.com/CDK-TEAM/CDK .
43

pkg/evaluate/available_linux_capabilities.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*
32
Copyright 2022 The Authors of https://github.com/CDK-TEAM/CDK .
43

pkg/evaluate/available_linux_commands.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*
32
Copyright 2022 The Authors of https://github.com/CDK-TEAM/CDK .
43

0 commit comments

Comments
 (0)