Skip to content

Commit

Permalink
Remove unnecessary return
Browse files Browse the repository at this point in the history
  • Loading branch information
Miraeld committed Oct 24, 2024
1 parent 2c4b5cc commit b5e3cc2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions inc/Engine/Optimization/DynamicLists/DynamicLists.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,18 +317,12 @@ public function get_lrc_exclusions(): array {
/**
* Updates the lists from JSON files
*
* @return array
* @return void
*/
public function update_lists_from_files() {
foreach ( $this->providers as $provider ) {
$provider->data_manager->remove_lists_cache();
$provider->data_manager->get_lists();
}

return [
'success' => true,
'data' => '',
'message' => __( 'Lists are successfully updated from JSON files.', 'rocket' ),
];
}
}

0 comments on commit b5e3cc2

Please sign in to comment.