Skip to content

Commit

Permalink
Update runtime/compilers/rillv1/parse_model.go
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Egelund-Müller <[email protected]>
  • Loading branch information
k-anshul and begelundmuller authored Sep 20, 2024
1 parent 0a9338a commit 7fa86aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/compilers/rillv1/parse_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ func (p *Parser) parseModel(ctx context.Context, node *Node) error {
if err == nil {
for _, localPath := range localPaths {
localPath = strings.TrimPrefix(localPath, root)
resources := p.LocalDataToResourcepath[localPath]
if _, ok := p.LocalDataToResourcepath[localPath]; !ok {
resources, ok := p.LocalDataToResourcepath[localPath]
if !ok {
resources = make(map[string]any)
p.LocalDataToResourcepath[localPath] = resources
}
Expand Down

0 comments on commit 7fa86aa

Please sign in to comment.