fixes context override #901
Annotations
4 errors and 1 warning
Run authzed/actions/gofumpt@main:
internal/client/client.go#L1
Please run gofumpt.
diff --git a/internal/client/client.go b/internal/client/client.go
index efe871a..b236267 100644
--- a/internal/client/client.go
+++ b/internal/client/client.go
@@ -28,8 +28,10 @@ type Client interface {
}
// NewClient defines an (overridable) means of creating a new client.
-var NewClient = newClientForCurrentContext
-var NewClientForContext = newClientForContext
+var (
+ NewClient = newClientForCurrentContext
+ NewClientForContext = newClientForContext
+)
func newClientForCurrentContext(cmd *cobra.Command) (Client, error) {
configStore, secretStore := DefaultStorage()
|
Run authzed/actions/gofumpt@main:
internal/client/client_test.go#L1
Please run gofumpt.
diff --git a/internal/client/client_test.go b/internal/client/client_test.go
index bad0f4d..e1a0d92 100644
--- a/internal/client/client_test.go
+++ b/internal/client/client_test.go
@@ -59,5 +59,4 @@ func TestGetTokenWithCLIOverride(t *testing.T) {
require.Equal(t, []byte("bye"), to.CACert)
require.Equal(t, &bFalse, to.Insecure)
require.Equal(t, &bFalse, to.NoVerifyCA)
-
}
|
Run authzed/actions/gofumpt@main:
internal/storage/config_test.go#L1
Please run gofumpt.
diff --git a/internal/storage/config_test.go b/internal/storage/config_test.go
index 10ef1a1..aa65d6e 100644
--- a/internal/storage/config_test.go
+++ b/internal/storage/config_test.go
@@ -2,12 +2,12 @@ package storage
import (
"bytes"
- "github.com/stretchr/testify/require"
"testing"
+
+ "github.com/stretchr/testify/require"
)
func TestTokenWithOverride(t *testing.T) {
-
bTrue := true
referenceToken := Token{
Name: "n1",
|
Run authzed/actions/gofumpt@main
Process completed with exit code 1.
|
Run authzed/actions/gofumpt@main
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Loading