Skip to content

Commit

Permalink
Fix invalid error message when listing checksums across a collection
Browse files Browse the repository at this point in the history
Listing collection contents raised an invalid error if checksums were
requested. Remove the lines causing this because they are simply an
incorrect addition.
  • Loading branch information
kjsanger committed Sep 27, 2024
1 parent 6b299ae commit d41772e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/operations.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,6 @@ json_t *baton_json_dispatch_op(rodsEnv *env, rcComm_t *conn, json_t *envelope,
else if (str_equals(op, JSON_LIST_OP, MAX_STR_LEN)) {
result = baton_json_list_op(env, conn, target, &args_copy, error);
if (error->code != 0) goto finally;

if (args_copy.flags & PRINT_CHECKSUM) {
result = add_checksum_json_object(conn, result, error);
if (error->code != 0) goto finally;
}
}
else if (str_equals(op, JSON_METAMOD_OP, MAX_STR_LEN)) {
result = baton_json_metamod_op(env, conn, target, &args_copy, error);
Expand Down

0 comments on commit d41772e

Please sign in to comment.