ネストをちょっと減らした

This commit is contained in:
shibafu 2020-02-16 23:21:17 +09:00
parent 794cdf2be6
commit 0a53199399

View File

@ -150,9 +150,9 @@ class CheckinCsvImporter
$column = 'タグ' . $i;
if (empty($record[$column])) {
break;
} else {
$tag = trim($record[$column]);
}
$tag = trim($record[$column]);
if (empty($tag)) {
break;
}
@ -165,7 +165,6 @@ class CheckinCsvImporter
$tags[] = Tag::firstOrCreate(['name' => $tag]);
}
}
return $tags;
}