Skip to content

Commit

Permalink
Rename local function to better describe what it does
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Rutkowski <[email protected]>
  • Loading branch information
mrutkows committed Nov 18, 2024
1 parent 3b8a774 commit 20090a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,15 @@ func LoadSchemaDependencies(depSchemaLoader *gojsonschema.SchemaLoader, schemas
getLogger().Debugf("Found: '%s': %v", schemaName, formatSchemaInstance)

getLogger().Debugf("Added schema '%s' to loader:...", formatSchemaInstance.File)
err = AddSharedSchemaToLoader(depSchemaLoader, formatSchemaInstance)
err = AddDependencySchemaToLoader(depSchemaLoader, formatSchemaInstance)
if err != nil {
return
}
}
return
}

func AddSharedSchemaToLoader(depSchemaLoader *gojsonschema.SchemaLoader, formatSchemaInstance schema.FormatSchemaInstance) (err error) {
func AddDependencySchemaToLoader(depSchemaLoader *gojsonschema.SchemaLoader, formatSchemaInstance schema.FormatSchemaInstance) (err error) {
getLogger().Debugf("Reading schema: '%s'...", formatSchemaInstance.File)
bSchema, errRead := resources.BOMSchemaFiles.ReadFile(formatSchemaInstance.File)

Expand Down

0 comments on commit 20090a5

Please sign in to comment.