Skip to content

Commit

Permalink
ignore err
Browse files Browse the repository at this point in the history
  • Loading branch information
hilmarf authored Feb 22, 2024
1 parent 8565e58 commit 83658b2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/contexts/config/configutils/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ func Configure(path string) error {
func ConfigureContext(ctxp config.ContextProvider, path string) error {
ctx := config.FromProvider(ctxp)

h, err := os.UserHomeDir()
if err != nil {
return errors.Wrapf(err, "cannot determine home directory")
}
h, _ := os.UserHomeDir()
if path == "" {
if h != "" {
cfg := h + "/.ocmconfig"
Expand Down

0 comments on commit 83658b2

Please sign in to comment.