Simplify if null statement

This commit is contained in:
Stephen 2019-11-07 20:06:46 -05:00
parent eef979db4c
commit dfa603c335

View File

@ -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;
} }
/** /**