From eb7f5c4e0ad12c452fe7a05832ab387d349bb4f5 Mon Sep 17 00:00:00 2001 From: "Kyle J. Davis" Date: Sat, 13 Apr 2024 13:38:05 -0600 Subject: [PATCH] Removes empty history arrays in json (#317) Fixes #241 Removes the empty `history` arrays in 6 command JSON files. This normalizes these 6 with the rest of the command JSON which omit the `history` array entirely when there is no history. This makes parsing these files slightly less annoying in languages where empty arrays are falsey. Signed-off-by: Kyle J. Davis --- src/commands/acl-dryrun.json | 1 - src/commands/cluster-myshardid.json | 1 - src/commands/cluster-shards.json | 1 - src/commands/monitor.json | 1 - src/commands/rename.json | 1 - src/commands/subscribe.json | 1 - 6 files changed, 6 deletions(-) diff --git a/src/commands/acl-dryrun.json b/src/commands/acl-dryrun.json index bee6a6aac..0c230f5c2 100644 --- a/src/commands/acl-dryrun.json +++ b/src/commands/acl-dryrun.json @@ -7,7 +7,6 @@ "arity": -4, "container": "ACL", "function": "aclCommand", - "history": [], "command_flags": [ "ADMIN", "NOSCRIPT", diff --git a/src/commands/cluster-myshardid.json b/src/commands/cluster-myshardid.json index 88a710730..01c05ba92 100644 --- a/src/commands/cluster-myshardid.json +++ b/src/commands/cluster-myshardid.json @@ -7,7 +7,6 @@ "arity": 2, "container": "CLUSTER", "function": "clusterCommand", - "history": [], "command_flags": [ "STALE" ], diff --git a/src/commands/cluster-shards.json b/src/commands/cluster-shards.json index 472e957ea..e63c129ea 100644 --- a/src/commands/cluster-shards.json +++ b/src/commands/cluster-shards.json @@ -7,7 +7,6 @@ "arity": 2, "container": "CLUSTER", "function": "clusterCommand", - "history": [], "command_flags": [ "LOADING", "STALE" diff --git a/src/commands/monitor.json b/src/commands/monitor.json index 23c659e4e..7e75228b4 100644 --- a/src/commands/monitor.json +++ b/src/commands/monitor.json @@ -5,7 +5,6 @@ "since": "1.0.0", "arity": 1, "function": "monitorCommand", - "history": [], "command_flags": [ "ADMIN", "NOSCRIPT", diff --git a/src/commands/rename.json b/src/commands/rename.json index a8b65aee7..1affbb965 100644 --- a/src/commands/rename.json +++ b/src/commands/rename.json @@ -6,7 +6,6 @@ "since": "1.0.0", "arity": 3, "function": "renameCommand", - "history": [], "command_flags": [ "WRITE" ], diff --git a/src/commands/subscribe.json b/src/commands/subscribe.json index bdf12b726..b0c4254f4 100644 --- a/src/commands/subscribe.json +++ b/src/commands/subscribe.json @@ -6,7 +6,6 @@ "since": "2.0.0", "arity": -2, "function": "subscribeCommand", - "history": [], "command_flags": [ "PUBSUB", "NOSCRIPT",