Removed method that does the same return

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-05-23 19:22:00 -07:00
parent f355a6e9e1
commit 55683c29dc

View file

@ -112,15 +112,11 @@ class ItemImporter extends Importer
*/
protected function determineCheckout($row)
{
// Locations don't get checked out to anyone/anything
if (get_class($this) == LocationImporter::class) {
return;
}
// We only support checkout-to-location for asset, so short circuit otherwise.
if (get_class($this) != AssetImporter::class) {
return $this->createOrFetchUser($row);
}
if (strtolower($this->item['checkout_class']) === 'location' && $this->findCsvMatch($row, 'checkout_location') != null ) {
return Location::findOrFail($this->createOrFetchLocation($this->findCsvMatch($row, 'checkout_location')));
}