Skip to content

Commit

Permalink
Fix bad return handling in generic_seq_xchitem()
Browse files Browse the repository at this point in the history
  • Loading branch information
GrieferAtWork committed May 18, 2024
1 parent bcfeefd commit 67175fa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/deemon/objects/seq/default-api-mutable.c
Original file line number Diff line number Diff line change
Expand Up @@ -2162,9 +2162,7 @@ generic_seq_xchitem(DeeObject *self, size_t argc, DeeObject *const *argv, DeeObj
if (DeeArg_UnpackKw(argc, argv, kw, kwlist__index_value,
UNPuSIZ "o:xchitem", &index, &value))
goto err;
if unlikely(new_DeeSeq_XchItemIndex(self, index, value))
goto err;
return_none;
return new_DeeSeq_XchItemIndex(self, index, value);
err:
return NULL;
}
Expand Down

0 comments on commit 67175fa

Please sign in to comment.