Skip to content

Commit

Permalink
fix: lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-stewart committed Feb 22, 2024
1 parent 4a0f3b5 commit df1797b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lwcomponent/catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,10 @@ func (c *Catalog) Install(component *CDKComponent) (err error) {
return
}

CreateHostInfo(componentDir, component.Description, component.Type)
component.HostInfo, err = CreateHostInfo(componentDir, component.Description, component.Type)
if err != nil {
return
}

if component.ApiInfo != nil &&
(component.ApiInfo.ComponentType == BinaryType || component.ApiInfo.ComponentType == CommandType) {
Expand All @@ -219,8 +222,6 @@ func (c *Catalog) Install(component *CDKComponent) (err error) {
}
}

component.HostInfo, err = NewHostInfo(componentDir)

return
}

Expand Down

0 comments on commit df1797b

Please sign in to comment.