Skip to content

Commit

Permalink
refactor code
Browse files Browse the repository at this point in the history
Signed-off-by: Pulak Kanti Bhowmick <[email protected]>
  • Loading branch information
pkbhowmick committed Nov 3, 2024
1 parent 19c98c9 commit 7251afc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/exec/stack_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ func ProcessComponentMetadata(
componentIsAbstract = true
}
}
if componentMetadataEnabled, componentMetadataEnabledExists := componentMetadata["enabled"].(bool); componentMetadataEnabledExists && !componentMetadataEnabled {
componentIsEnabled = false
if enabledValue, exists := componentMetadata["enabled"]; exists {
if enabled, ok := enabledValue.(bool); ok && !enabled {
componentIsEnabled = false
}
}
// Find base component in the `metadata.component` attribute
// `metadata.component` overrides `component`
Expand Down

0 comments on commit 7251afc

Please sign in to comment.