Skip to content

Commit f2dbeb8

Browse files
committed
[Translation][Csv file] remove unnecessary statements, for better readability.
1 parent 20c6e5a commit f2dbeb8

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

Loader/CsvFileLoader.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,8 @@ public function load($resource, $locale, $domain = 'messages')
5151
$file->setCsvControl($this->delimiter, $this->enclosure, $this->escape);
5252

5353
foreach ($file as $data) {
54-
if (substr($data[0], 0, 1) === '#') {
55-
continue;
56-
}
57-
58-
if (!isset($data[1])) {
59-
continue;
60-
}
61-
62-
if (count($data) == 2) {
54+
if ('#' !== substr($data[0], 0, 1) && isset($data[1]) && 2 === count($data)) {
6355
$messages[$data[0]] = $data[1];
64-
} else {
65-
continue;
6656
}
6757
}
6858

0 commit comments

Comments
 (0)