Skip to content

Commit

Permalink
Remove unused config
Browse files Browse the repository at this point in the history
  • Loading branch information
ishank011 committed Aug 10, 2021
1 parent d5cb5a4 commit 976920d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions internal/http/services/appprovider/appprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,14 @@ func init() {

// Config holds the config options that need to be passed down to all ocdav handlers
type Config struct {
Prefix string `mapstructure:"prefix"`
GatewaySvc string `mapstructure:"gatewaysvc"`
AccessTokenTTL int `mapstructure:"access_token_ttl"`
Prefix string `mapstructure:"prefix"`
GatewaySvc string `mapstructure:"gatewaysvc"`
}

func (c *Config) init() {
if c.Prefix == "" {
c.Prefix = "app"
}
if c.AccessTokenTTL == 0 {
c.AccessTokenTTL = 86400
}
c.GatewaySvc = sharedconf.GetGatewaySVC(c.GatewaySvc)
}

Expand Down

0 comments on commit 976920d

Please sign in to comment.