From 56da39781916f97bd3ca157dd089009970fae730 Mon Sep 17 00:00:00 2001 From: Alexander Petrov Date: Thu, 3 Oct 2019 09:00:04 +0100 Subject: [PATCH] Code review fixes: Removed unnecessary vm handle checks --- c-bindings/c-bindings.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/c-bindings/c-bindings.go b/c-bindings/c-bindings.go index 105b31a..76348f1 100644 --- a/c-bindings/c-bindings.go +++ b/c-bindings/c-bindings.go @@ -301,7 +301,6 @@ func jsonnet_json_make_array(vmRef *C.struct_JsonnetVm) *C.struct_JsonnetJsonVal //export jsonnet_json_array_append func jsonnet_json_array_append(vmRef *C.struct_JsonnetVm, arr *C.struct_JsonnetJsonValue, v *C.struct_JsonnetJsonValue) { - _ = getVM(vmRef) // Here we check it, is it ok? json := getJSONValue(arr) slice, ok := json.val.([]interface{}) @@ -326,7 +325,6 @@ func jsonnet_json_object_append( f *C.char, v *C.struct_JsonnetJsonValue, ) { - _ = getVM(vmRef) // Here we check it, is it ok? d := getJSONValue(obj) table, ok := d.val.(map[string]interface{})