mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 11:18:52 +00:00
Simplify if null statement
This commit is contained in:
parent
eef979db4c
commit
dfa603c335
@ -142,11 +142,7 @@ class Skin{
|
|||||||
* @return SerializedImage
|
* @return SerializedImage
|
||||||
*/
|
*/
|
||||||
public function getCapeData() : SerializedImage{
|
public function getCapeData() : SerializedImage{
|
||||||
if($this->capeData === null){
|
return $this->capeData ?? new SerializedImage(0, 0, "");
|
||||||
return new SerializedImage(0, 0, "");
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this->capeData;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user