File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
app/code/Magento/CatalogSearch/Model/Indexer/Fulltext/Plugin Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,10 @@ public function aroundSave(
22
22
\Closure $ proceed ,
23
23
\Magento \Framework \Model \AbstractModel $ product
24
24
) {
25
- $ result = $ proceed ($ product );
26
25
$ productResource ->addCommitCallback (function () use ($ product ) {
27
26
$ this ->reindexRow ($ product ->getId ());
28
27
});
29
-
30
- return $ result ;
28
+ return $ proceed ($ product );
31
29
}
32
30
33
31
/**
@@ -44,10 +42,9 @@ public function aroundDelete(
44
42
\Closure $ proceed ,
45
43
\Magento \Framework \Model \AbstractModel $ product
46
44
) {
47
- $ result = $ proceed ($ product );
48
45
$ productResource ->addCommitCallback (function () use ($ product ) {
49
46
$ this ->reindexRow ($ product ->getId ());
50
47
});
51
- return $ result ;
48
+ return $ proceed ( $ product ) ;
52
49
}
53
50
}
You can’t perform that action at this time.
0 commit comments