Skip to content

Commit fd78f9d

Browse files
chemidyhiranya911
authored andcommitted
Lint (#96)
* fix misspelling * add check error * missing copyright
1 parent 0b3ac34 commit fd78f9d

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

auth/jwt_test.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2017 Google Inc. All Rights Reserved.
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
package auth
216

317
import (

firebase_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ func overwriteEnv(varName, newVal string) string {
574574
return oldVal
575575
}
576576

577-
// reinstateEnv restores the enviornment variable, will usually be used deferred with overwriteEnv.
577+
// reinstateEnv restores the environment variable, will usually be used deferred with overwriteEnv.
578578
func reinstateEnv(varName, oldVal string) {
579579
if len(varName) > 0 {
580580
os.Setenv(varName, oldVal)

integration/auth/user_mgt_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,9 @@ func testRemoveCustomClaims(t *testing.T) {
371371
t.Fatal(err)
372372
}
373373
u, err = client.GetUser(context.Background(), testFixtures.sampleUserBlank.UID)
374+
if err != nil {
375+
t.Fatal(err)
376+
}
374377
if u.CustomClaims != nil {
375378
t.Errorf("CustomClaims() = %#v; want = nil", u.CustomClaims)
376379
}

0 commit comments

Comments
 (0)