From a5081896bc0416f9b64ae8e488bfe1cc2042ca7e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 4 Jan 2021 14:02:58 +1100 Subject: Cleanup: redundant code, minor inconsistencies - Remove ternary operators when both values are the same. - Remove break after return. - Remove redundant NULL checks for code which handles those cases immediately beforehand. --- source/blender/editors/space_nla/nla_channels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_nla') diff --git a/source/blender/editors/space_nla/nla_channels.c b/source/blender/editors/space_nla/nla_channels.c index 4e0f1462626..763a3fd63e6 100644 --- a/source/blender/editors/space_nla/nla_channels.c +++ b/source/blender/editors/space_nla/nla_channels.c @@ -586,7 +586,7 @@ static int nla_action_unlink_exec(bContext *C, wmOperator *op) } /* do unlinking */ - if (adt && adt->action) { + if (adt->action) { bool force_delete = RNA_boolean_get(op->ptr, "force_delete"); ED_animedit_unlink_action(C, adt_ptr.owner_id, adt, adt->action, op->reports, force_delete); } -- cgit v1.2.3