Skip to content

Commit

Permalink
Removed useless checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasss93 committed Jan 9, 2021
1 parent 984bfb5 commit cdb0fb5
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/Console/LarexExportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,6 @@ private function translate(): int
//get first two columns values
[$group, $key] = $columns;

//check if group is filled
if ($group === '') {
$this->warn("Missing group name at line {$line}. The row will be skipped.");
continue;
}

//check if key is filled
if ($key === '') {
$this->warn("Missing key name at line {$line}. The row will be skipped.");
Expand All @@ -143,11 +137,6 @@ private function translate(): int
"{$group}.{$key} at line {$line}, column {$column} ({$header[$j]}) " .
"is missing. It will be skipped."
);
} catch (Exception $e) {
$this->warn(
"{$group}.{$key} at line {$line}, column {$column} ({$header[$j]}) " .
"is not valid. It will be skipped."
);
}
}

Expand Down

0 comments on commit cdb0fb5

Please sign in to comment.