From d8a3894c8c063485a951f6b576c8d2da1135f170 Mon Sep 17 00:00:00 2001 From: Andrew Serong <14988353+andrewserong@users.noreply.github.com> Date: Mon, 5 Feb 2024 10:50:41 +1100 Subject: [PATCH] Simplify return statement because we know it'll always be a boolean Co-authored-by: Robert Anderson --- packages/block-editor/src/store/private-selectors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/store/private-selectors.js b/packages/block-editor/src/store/private-selectors.js index f373c85dab67db..c7cf390bb68b93 100644 --- a/packages/block-editor/src/store/private-selectors.js +++ b/packages/block-editor/src/store/private-selectors.js @@ -353,5 +353,5 @@ export function getBlockBindingsSource( state, sourceName ) { * @return {boolean} Whether user is dragging. */ export function isDragging( state ) { - return !! state.isDragging; + return state.isDragging; }