Skip to content

Commit 9a5198e

Browse files
committed
Remove unnecessary else.
1 parent 7973428 commit 9a5198e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Generators/DataTablesMakeCommand.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,14 @@ protected function getColumns()
248248

249249
if ($this->option('columns') != '') {
250250
return $this->parseColumns($this->option('columns'));
251-
} else {
252-
return $this->parseColumns(
253-
$this->laravel['config']->get(
254-
'datatables-buttons.generator.columns',
255-
'id,add your columns,created_at,updated_at'
256-
)
257-
);
258251
}
252+
253+
return $this->parseColumns(
254+
$this->laravel['config']->get(
255+
'datatables-buttons.generator.columns',
256+
'id,add your columns,created_at,updated_at'
257+
)
258+
);
259259
}
260260

261261
/**

0 commit comments

Comments
 (0)