Skip to content

Commit db756bd

Browse files
committed
code checks
Signed-off-by: Junjun Li <[email protected]>
1 parent 17ebd7a commit db756bd

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

cri/stream/portforward/httpstream.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ func handleHTTPStreams(ctx context.Context, w http.ResponseWriter, req *http.Req
7474
streamChan: streamChan,
7575
streamPairs: collect.NewSafeMap(),
7676
streamCreationTimeout: streamCreationTimeout,
77-
pod: podName,
78-
forwarder: portForwarder,
77+
pod: podName,
78+
forwarder: portForwarder,
7979
}
8080
h.run(ctx)
8181

cri/v1alpha2/cri_utils_test.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -985,10 +985,10 @@ func Test_toCriContainer(t *testing.T) {
985985
Config: &apitypes.ContainerConfig{
986986
Image: "image",
987987
Labels: map[string]string{
988-
containerTypeLabelKey: "b",
989-
sandboxIDLabelKey: "sid",
990-
"aa": "bb",
991-
"cc": "dd",
988+
containerTypeLabelKey: "b",
989+
sandboxIDLabelKey: "sid",
990+
"aa": "bb",
991+
"cc": "dd",
992992
annotationPrefix + "aaa": "bbb",
993993
annotationPrefix + "ccc": "ddd",
994994
},
@@ -1031,10 +1031,10 @@ func Test_toCriContainer(t *testing.T) {
10311031
Config: &apitypes.ContainerConfig{
10321032
Image: "image",
10331033
Labels: map[string]string{
1034-
containerTypeLabelKey: "b",
1035-
sandboxIDLabelKey: "sid",
1036-
"aa": "bb",
1037-
"cc": "dd",
1034+
containerTypeLabelKey: "b",
1035+
sandboxIDLabelKey: "sid",
1036+
"aa": "bb",
1037+
"cc": "dd",
10381038
annotationPrefix + "aaa": "bbb",
10391039
annotationPrefix + "ccc": "ddd",
10401040
},
@@ -1058,10 +1058,10 @@ func Test_toCriContainer(t *testing.T) {
10581058
Config: &apitypes.ContainerConfig{
10591059
Image: "image",
10601060
Labels: map[string]string{
1061-
containerTypeLabelKey: "b",
1062-
sandboxIDLabelKey: "sid",
1063-
"aa": "bb",
1064-
"cc": "dd",
1061+
containerTypeLabelKey: "b",
1062+
sandboxIDLabelKey: "sid",
1063+
"aa": "bb",
1064+
"cc": "dd",
10651065
annotationPrefix + "aaa": "bbb",
10661066
annotationPrefix + "ccc": "ddd",
10671067
},

0 commit comments

Comments
 (0)