No longer need to test for type, it should exist

This commit is contained in:
2023-05-03 23:41:48 +10:00
parent 25dab73a83
commit a5238bfbdc
6 changed files with 19 additions and 8 deletions

View File

@@ -294,7 +294,7 @@ class Product extends Model implements IDs
*/
public function getSuppliedAttribute(): ?Model
{
return $this->type && $this->type->supplied ? $this->type->supplied : NULL;
return $this->type->supplied ? $this->type->supplied : NULL;
}
/**
@@ -426,7 +426,7 @@ class Product extends Model implements IDs
*/
public function hasUsage(): bool
{
return $this->type && $this->type->hasUsage();
return $this->type->hasUsage();
}
/**