Skip to content

Commit b880aba

Browse files
authored
feat: do not check for context existence if a custom context file is set (#1751)
1 parent 8338118 commit b880aba

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pkg/core/servicecontext/file.go

-6
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,6 @@ func (c *File) Remove() error {
9797
func (c *File) Location() (path string, err error) {
9898

9999
if rhoasContext := os.Getenv(ContextEnvName); rhoasContext != "" {
100-
101-
_, err := os.Stat(rhoasContext)
102-
if os.IsNotExist(err) {
103-
return "", fmt.Errorf("Custom file path '%s' provided doesn't exist", rhoasContext)
104-
}
105-
106100
path = rhoasContext
107101
} else {
108102
rhoasCtxDir, err := DefaultDir()

0 commit comments

Comments
 (0)