Skip to content

Commit

Permalink
solve
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Oct 31, 2023
1 parent dbecf77 commit 133b21b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions configuration/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
)

type Configuration struct {
isDebug bool `env:"IS_DEBUG"`
baseUrl string
Debug bool `env:"IS_DEBUG"`
BaseUrl string
//RestClient *resty.Client
}

Expand Down
3 changes: 1 addition & 2 deletions fakeyou/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ func (f *Builder) Build() []string {


func (f *fakeyou) IsDebug() bool {
return false
//return f.configuration.isDebug
return f.configuration.Debug
}

// Resty Methods
Expand Down
2 changes: 1 addition & 1 deletion fakeyou/fakeyou.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func NewFakeYou(configuration *configuration.Configuration) IFakeYou {
fk.restClient = resty.New()
fk.restClient.SetBaseURL(routes.BASE_URL)
fk.restClient.SetHeader("Content-Type", "application/json")
if configuration.isDebug {
if configuration.Debug {
fk.restClient.SetDebug(true)
}
return fk
Expand Down

0 comments on commit 133b21b

Please sign in to comment.