Skip to content

Commit e5ca11b

Browse files
authored
Merge pull request #6261 from WiXSL/fix-simplify-expression
Simplified boolean expression
2 parents f39477b + d3a493b commit e5ca11b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/ra-core/src/dataProvider/useMutation.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,7 @@ const hasDeclarativeSideEffectsSupport = (
327327
if (!options && !callTimeOptions) return false;
328328
if (callTimeOptions && callTimeOptions.withDeclarativeSideEffectsSupport)
329329
return true;
330-
if (options && options.withDeclarativeSideEffectsSupport) return true;
331-
return false;
330+
return options && options.withDeclarativeSideEffectsSupport;
332331
};
333332

334333
const sanitizeOptions = (args?: MutationOptions) => {

0 commit comments

Comments
 (0)