mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 19:34:15 +00:00
remove redundant null coalesce
This commit is contained in:
parent
e0654b85ba
commit
235fc4cd2f
@ -512,7 +512,7 @@ class Item implements ItemIds, \JsonSerializable{
|
||||
* @return NamedTag|null
|
||||
*/
|
||||
public function getNamedTagEntry(string $name) : ?NamedTag{
|
||||
return $this->getNamedTag()->getTag($name) ?? null;
|
||||
return $this->getNamedTag()->getTag($name);
|
||||
}
|
||||
|
||||
public function setNamedTagEntry(NamedTag $new) : void{
|
||||
|
Loading…
x
Reference in New Issue
Block a user