We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e4ede5 commit 4c761a4Copy full SHA for 4c761a4
build.go
@@ -63,14 +63,7 @@ func Build(projectPathParser PathParser,
63
if len(bindings) == 1 {
64
logger.Process("Loading npmrc service binding")
65
66
- npmrcExists := false
67
- for key := range bindings[0].Entries {
68
- if key == ".npmrc" {
69
- npmrcExists = true
70
- break
71
- }
72
73
- if !npmrcExists {
+ if _, ok := bindings[0].Entries[".npmrc"]; !ok {
74
return packit.BuildResult{}, errors.New("binding of type 'npmrc' does not contain required entry '.npmrc'")
75
}
76
globalNpmrcPath = filepath.Join(bindings[0].Path, ".npmrc")
0 commit comments