remove redundant null coalesce

This commit is contained in:
Dylan K. Taylor 2017-11-17 10:45:14 +00:00
parent e0654b85ba
commit 235fc4cd2f

View File

@ -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{