No longer need to test for type, it should exist
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user