Skip to content

Commit

Permalink
Fix panic on env.In method when env is not defined
Browse files Browse the repository at this point in the history
Resolves #144

---
Co-authored-by: Andrei Tserakhau <[email protected]>

Pull Request resolved: #148
commit_hash:3dee202508062abfdcdff7c7a55479cafb01d959
  • Loading branch information
laskoviymishka authored and robot-piglet committed Dec 20, 2024
1 parent ab97f5c commit 7ac9b17
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/config/env/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ func IsTest() bool {
}

func Get() Environment {
if environmentProvider == nil {
return EnvironmentUnknown
}
return environmentProvider.Get()
}

Expand Down

0 comments on commit 7ac9b17

Please sign in to comment.