Skip to content

Commit 8a97d83

Browse files
chemidyhiranya911
authored andcommitted
format import (#198)
1 parent 56926c1 commit 8a97d83

39 files changed

+58
-124
lines changed

auth/auth.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,15 @@
1616
package auth
1717

1818
import (
19+
"context"
1920
"encoding/json"
2021
"errors"
2122
"fmt"
2223
"strings"
2324

24-
"google.golang.org/api/option"
25-
26-
"context"
27-
2825
"firebase.google.com/go/internal"
2926
"google.golang.org/api/identitytoolkit/v3"
27+
"google.golang.org/api/option"
3028
"google.golang.org/api/transport"
3129
)
3230

auth/auth_appengine.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"context"
2121

2222
"firebase.google.com/go/internal"
23-
2423
"google.golang.org/appengine"
2524
)
2625

auth/auth_test.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
package auth
1616

1717
import (
18+
"context"
1819
"encoding/json"
1920
"errors"
2021
"fmt"
@@ -25,16 +26,12 @@ import (
2526
"testing"
2627
"time"
2728

28-
"context"
29-
29+
"firebase.google.com/go/internal"
3030
"golang.org/x/oauth2/google"
31-
3231
"google.golang.org/api/option"
3332
"google.golang.org/api/transport"
3433
"google.golang.org/appengine"
3534
"google.golang.org/appengine/aetest"
36-
37-
"firebase.google.com/go/internal"
3835
)
3936

4037
var (

auth/hash/hash_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ import (
1919
"reflect"
2020
"testing"
2121

22-
"firebase.google.com/go/internal"
23-
2422
"firebase.google.com/go/auth"
23+
"firebase.google.com/go/internal"
2524
)
2625

2726
var (

auth/token_generator.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
package auth
1616

1717
import (
18+
"context"
1819
"crypto"
1920
"crypto/rand"
2021
"crypto/rsa"
@@ -31,8 +32,6 @@ import (
3132

3233
"firebase.google.com/go/internal"
3334
"google.golang.org/api/transport"
34-
35-
"context"
3635
)
3736

3837
type jwtHeader struct {

auth/token_generator_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
package auth
1616

1717
import (
18+
"context"
1819
"encoding/base64"
1920
"encoding/json"
2021
"errors"
@@ -27,8 +28,6 @@ import (
2728

2829
"firebase.google.com/go/internal"
2930
"google.golang.org/api/option"
30-
31-
"context"
3231
)
3332

3433
func TestEncodeToken(t *testing.T) {

auth/token_verifier.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ package auth
1616

1717
import (
1818
"bytes"
19+
"context"
1920
"crypto"
2021
"crypto/rsa"
2122
"crypto/sha256"
@@ -31,8 +32,6 @@ import (
3132
"strings"
3233
"sync"
3334
"time"
34-
35-
"context"
3635
)
3736

3837
// keySource is used to obtain a set of public keys, which can be used to verify cryptographic

auth/user_mgt.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
package auth
1616

1717
import (
18+
"context"
1819
"encoding/base64"
1920
"encoding/json"
2021
"errors"
@@ -24,10 +25,7 @@ import (
2425
"strings"
2526
"time"
2627

27-
"context"
28-
2928
"firebase.google.com/go/internal"
30-
3129
"google.golang.org/api/googleapi"
3230
"google.golang.org/api/identitytoolkit/v3"
3331
"google.golang.org/api/iterator"

auth/user_mgt_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ package auth
1616

1717
import (
1818
"bytes"
19+
"context"
1920
"encoding/base64"
2021
"encoding/json"
2122
"fmt"
@@ -27,10 +28,7 @@ import (
2728
"testing"
2829
"time"
2930

30-
"context"
31-
3231
"firebase.google.com/go/internal"
33-
3432
"golang.org/x/oauth2"
3533
"google.golang.org/api/identitytoolkit/v3"
3634
"google.golang.org/api/iterator"

db/auth_override_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
package db
1616

1717
import (
18-
"testing"
19-
2018
"context"
19+
"testing"
2120
)
2221

2322
func TestAuthOverrideGet(t *testing.T) {

0 commit comments

Comments
 (0)