Skip to content

Commit 00675a1

Browse files
committed
fix lint errors
1 parent 4489f91 commit 00675a1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

auth/auth_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,10 +1452,10 @@ func checkBaseClient(client *Client, wantProjectID string) error {
14521452
return fmt.Errorf("version = %q; want = %q", version, wantVersion)
14531453
}
14541454

1455-
xGoogApiClientHeader := req.Header.Get("x-goog-api-client")
1456-
wantXGoogApiClientHeader := fmt.Sprintf("gl-go/%s fire-admin/%s", runtime.Version(), testVersion)
1457-
if xGoogApiClientHeader != wantXGoogApiClientHeader {
1458-
return fmt.Errorf("x-goog-api-client header = %q; want = %q", xGoogApiClientHeader, wantXGoogApiClientHeader)
1455+
xGoogAPIClientHeader := req.Header.Get("x-goog-api-client")
1456+
wantXGoogAPIClientHeader := fmt.Sprintf("gl-go/%s fire-admin/%s", runtime.Version(), testVersion)
1457+
if xGoogAPIClientHeader != wantXGoogAPIClientHeader {
1458+
return fmt.Errorf("x-goog-api-client header = %q; want = %q", xGoogAPIClientHeader, wantXGoogAPIClientHeader)
14591459
}
14601460

14611461
return nil

messaging/messaging_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,9 +1395,9 @@ func checkFCMRequest(t *testing.T, b []byte, tr *http.Request, want map[string]i
13951395
if h := tr.Header.Get("X-FIREBASE-CLIENT"); h != clientVersion {
13961396
t.Errorf("X-FIREBASE-CLIENT = %q; want = %q", h, clientVersion)
13971397
}
1398-
xGoogApiClientHeader := "gl-go/" + runtime.Version() + " fire-admin/" + testMessagingConfig.Version
1399-
if h := tr.Header.Get("x-goog-api-client"); h != xGoogApiClientHeader {
1400-
t.Errorf("x-goog-api-client header = %q; want = %q", h, xGoogApiClientHeader)
1398+
xGoogAPIClientHeader := "gl-go/" + runtime.Version() + " fire-admin/" + testMessagingConfig.Version
1399+
if h := tr.Header.Get("x-goog-api-client"); h != xGoogAPIClientHeader {
1400+
t.Errorf("x-goog-api-client header = %q; want = %q", h, xGoogAPIClientHeader)
14011401
}
14021402
}
14031403

0 commit comments

Comments
 (0)