aboutsummaryrefslogtreecommitdiff
path: root/jim-json.c
diff options
context:
space:
mode:
Diffstat (limited to 'jim-json.c')
-rw-r--r--jim-json.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/jim-json.c b/jim-json.c
index aeeb7cf..2d613b7 100644
--- a/jim-json.c
+++ b/jim-json.c
@@ -418,10 +418,7 @@ done:
int
Jim_jsonInit(Jim_Interp *interp)
{
- if (Jim_PackageProvide(interp, "json", "1.0", JIM_ERRMSG) != JIM_OK) {
- return JIM_ERR;
- }
-
+ Jim_PackageProvideCheck(interp, "json");
Jim_CreateCommand(interp, "json::decode", json_decode, NULL, NULL);
/* Load the Tcl implementation of the json encoder if possible */
Jim_PackageRequire(interp, "jsonencode", 0);