1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Remove unneeded check

This commit is contained in:
Joshua Dwire 2016-03-15 22:38:42 -04:00
parent 9ef448c2b8
commit 67cc5599cc

View File

@ -5,8 +5,6 @@ use App\Services\DatatableService;
class BaseService
{
public static $bulk_actions = array('archive', 'restore', 'delete');
use DispatchesJobs;
protected function getRepo()
@ -16,7 +14,7 @@ class BaseService
public function bulk($ids, $action)
{
if ( ! $ids || ! in_array($action, static::$bulk_actions) ) {
if ( ! $ids ) {
return 0;
}