Skip to content

Commit

Permalink
s/failback/fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
strokyl authored Jun 25, 2024
1 parent 6d7bb59 commit e5e16a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions schema/sort.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/conduktor/ctl/resource"
)

func resourcePriority(catalog KindCatalog, resource resource.Resource, debug, failbackToDefaultCatalog bool) int {
func resourcePriority(catalog KindCatalog, resource resource.Resource, debug, fallbackToDefaultCatalog bool) int {
kind, ok := catalog[resource.Kind]
if !ok {
if debug {
Expand All @@ -26,7 +26,7 @@ func resourcePriority(catalog KindCatalog, resource resource.Resource, debug, fa
return DefaultPriority
} else {
order := kindVersion.Order
if order == DefaultPriority && failbackToDefaultCatalog {
if order == DefaultPriority && fallbackToDefaultCatalog {
defaultCatalog := DefaultKind()
orderFromDefaultCatalog := resourcePriority(defaultCatalog, resource, false, false)
if orderFromDefaultCatalog != DefaultPriority && debug {
Expand Down

0 comments on commit e5e16a5

Please sign in to comment.