Skip to content

Commit 9ef25a4

Browse files
authored
Address linter issue (#3555)
1 parent 3cd0573 commit 9ef25a4

14 files changed

+14
-14
lines changed

codegen/example/templates/server_handler.go.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@
5050
{{ end }}
5151
{{- end }}
5252
default:
53-
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: {{ join .Server.AvailableHosts "|" }})\n", *hostF))
53+
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: {{ join .Server.AvailableHosts "|" }})", *hostF))
5454
}

codegen/example/testdata/server-no-server.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func main() {
109109
}
110110

111111
default:
112-
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: localhost)\n", *hostF))
112+
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: localhost)", *hostF))
113113
}
114114

115115
// Wait for signal.

codegen/example/testdata/server-same-api-service-name.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func main() {
109109
}
110110

111111
default:
112-
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: localhost)\n", *hostF))
112+
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: localhost)", *hostF))
113113
}
114114

115115
// Wait for signal.

codegen/example/testdata/server-sercice-for-only-grpc.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func main() {
8585
}
8686

8787
default:
88-
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: localhost)\n", *hostF))
88+
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: localhost)", *hostF))
8989
}
9090

9191
// Wait for signal.

codegen/example/testdata/server-server-hosting-multiple-services.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func main() {
115115
}
116116

117117
default:
118-
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: dev)\n", *hostF))
118+
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: dev)", *hostF))
119119
}
120120

121121
// Wait for signal.

codegen/example/testdata/server-server-hosting-service-subset.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func main() {
109109
}
110110

111111
default:
112-
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: dev)\n", *hostF))
112+
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: dev)", *hostF))
113113
}
114114

115115
// Wait for signal.

codegen/example/testdata/server-server-hosting-service-with-file-server.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func main() {
6565
}
6666

6767
default:
68-
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: svc)\n", *hostF))
68+
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: svc)", *hostF))
6969
}
7070

7171
// Wait for signal.

codegen/example/testdata/server-service-for-http-and-part-of-grpc.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func main() {
115115
}
116116

117117
default:
118-
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: localhost)\n", *hostF))
118+
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: localhost)", *hostF))
119119
}
120120

121121
// Wait for signal.

codegen/example/testdata/server-service-for-only-http.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func main() {
8484
}
8585

8686
default:
87-
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: localhost)\n", *hostF))
87+
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: localhost)", *hostF))
8888
}
8989

9090
// Wait for signal.

codegen/example/testdata/server-service-name-with-spaces.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func main() {
109109
}
110110

111111
default:
112-
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: svc)\n", *hostF))
112+
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: svc)", *hostF))
113113
}
114114

115115
// Wait for signal.

codegen/example/testdata/server-single-server-multiple-hosts-with-variables.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func main() {
127127
}
128128

129129
default:
130-
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: dev|stage)\n", *hostF))
130+
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: dev|stage)", *hostF))
131131
}
132132

133133
// Wait for signal.

codegen/example/testdata/server-single-server-multiple-hosts.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func main() {
109109
}
110110

111111
default:
112-
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: dev|stage)\n", *hostF))
112+
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: dev|stage)", *hostF))
113113
}
114114

115115
// Wait for signal.

codegen/example/testdata/server-single-server-single-host-with-variables.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func main() {
135135
}
136136

137137
default:
138-
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: dev)\n", *hostF))
138+
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: dev)", *hostF))
139139
}
140140

141141
// Wait for signal.

codegen/example/testdata/server-single-server-single-host.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func main() {
157157
}
158158

159159
default:
160-
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: dev)\n", *hostF))
160+
log.Fatal(ctx, fmt.Errorf("invalid host argument: %q (valid hosts: dev)", *hostF))
161161
}
162162

163163
// Wait for signal.

0 commit comments

Comments
 (0)