From bedc4aa2cf74b80675a868df05e921bee3f8587b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Esteves?= Date: Thu, 13 Nov 2025 10:24:59 +0100 Subject: [PATCH] fix: Collapse primitve type switch options into a single case --- batch_item_model.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/batch_item_model.go b/batch_item_model.go index 2e17e40..deb4bca 100644 --- a/batch_item_model.go +++ b/batch_item_model.go @@ -277,13 +277,7 @@ func deserializeNodes(value []*jsonserialization.JsonParseNode) (interface{}, er func deserializeValue(value interface{}) (interface{}, error) { switch v := value.(type) { - case int: - case float64: - case string: - return value, nil - case *int: - case *float64: - case *string: + case int, float64, string, *int, *float64, *string: return value, nil case jsonserialization.JsonParseNode: case *jsonserialization.JsonParseNode: