From e5e16a561c738a75a9c32c41a954beb0f1819d9a Mon Sep 17 00:00:00 2001 From: LUC DUZAN Date: Tue, 25 Jun 2024 15:23:46 +0200 Subject: [PATCH] s/failback/fallback --- schema/sort.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schema/sort.go b/schema/sort.go index 240249a..e8d3c3f 100644 --- a/schema/sort.go +++ b/schema/sort.go @@ -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 { @@ -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 {