Skip to content

Commit

Permalink
Fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuzu committed Dec 29, 2024
1 parent 7093a07 commit 83c1be1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/issuer/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ type Config struct {
RefreshBefore time.Duration
}

const envErefix = "dex_"
const envFromFileErefix = "dex_file_"
const envPrefix = "dex_"
const envFromFilePrefix = "dex_file_"

var _ ConfigLoader = ConfigFromEnvs

Expand Down Expand Up @@ -68,7 +68,7 @@ func ConfigFromEnvs() (Config, error) {
}

func loadFromEnv(env string) (key, value string, err error) {
after, found := strings.CutPrefix(env, envFromFileErefix)
after, found := strings.CutPrefix(env, envPrefix)
if !found {
return "", "", nil
}
Expand All @@ -79,7 +79,7 @@ func loadFromEnv(env string) (key, value string, err error) {
}

func loadFromFile(env string) (key, value string, err error) {
after, found := strings.CutPrefix(env, envFromFileErefix)
after, found := strings.CutPrefix(env, envFromFilePrefix)
if !found {
return "", "", nil
}
Expand Down

0 comments on commit 83c1be1

Please sign in to comment.