From 08bf7f578b7ed12ec0f3dc419ab4da479c5f28d8 Mon Sep 17 00:00:00 2001 From: Khushbu Patil Date: Thu, 17 Mar 2022 14:41:21 -0700 Subject: [PATCH] Update reader.go Removing extra `return nil` that results in unreachable code. --- jsonschema/reader.go | 1 - 1 file changed, 1 deletion(-) diff --git a/jsonschema/reader.go b/jsonschema/reader.go index b8583d46..a909a341 100644 --- a/jsonschema/reader.go +++ b/jsonschema/reader.go @@ -165,7 +165,6 @@ func NewSchemaFromObject(jsonData *yaml.Node) *Schema { default: fmt.Printf("schemaValue: unexpected node %+v\n", jsonData) - return nil } return nil