File tree Expand file tree Collapse file tree 4 files changed +6
-15
lines changed Expand file tree Collapse file tree 4 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ require (
15
15
github.com/davecgh/go-spew v1.1.1 // indirect
16
16
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
17
17
github.com/pmezard/go-difflib v1.0.0 // indirect
18
- github.com/stretchr/objx v0.5.2 // indirect
19
18
go.uber.org/multierr v1.11.0 // indirect
20
19
golang.org/x/text v0.16.0 // indirect
21
20
gopkg.in/yaml.v3 v3.0.1 // indirect
Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
10
10
github.com/google/uuid v1.6.0 /go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo =
11
11
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
12
12
github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
13
- github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY =
14
- github.com/stretchr/objx v0.5.2 /go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA =
15
13
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg =
16
14
github.com/stretchr/testify v1.9.0 /go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY =
17
15
github.com/yuin/goldmark v1.4.13 /go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY =
Original file line number Diff line number Diff line change @@ -24,19 +24,10 @@ const ()
24
24
25
25
// Master struct/object
26
26
type Client struct {
27
- // Config
28
- config * ClientConfig
29
-
30
- // Integration
27
+ config * ClientConfig
31
28
Integration * APIIntegration
32
-
33
- // Executor
34
- http * http.Client
35
-
36
- // Logger
37
- Sugar * zap.SugaredLogger
38
-
39
- // Concurrency Mananger
29
+ http * http.Client
30
+ Sugar * zap.SugaredLogger
40
31
Concurrency * concurrency.ConcurrencyHandler
41
32
}
42
33
@@ -111,6 +102,7 @@ func (c *ClientConfig) Build() (*Client, error) {
111
102
if err != nil {
112
103
return nil , fmt .Errorf ("invalid configuration: %v" , err )
113
104
}
105
+
114
106
c .Sugar .Debug ("configuration valid" )
115
107
116
108
httpClient := & http.Client {
Original file line number Diff line number Diff line change @@ -87,6 +87,8 @@ func LoadConfigFromEnv() (*ClientConfig, error) {
87
87
Name : parts [0 ],
88
88
Value : parts [1 ],
89
89
})
90
+ } else {
91
+ return nil , fmt .Errorf ("invalid env cookie configuration: %s" , parts )
90
92
}
91
93
}
92
94
config .CustomCookies = cookies
You can’t perform that action at this time.
0 commit comments