Fixed static analyis issue

This commit is contained in:
Jan Böhmer 2025-07-06 14:02:16 +02:00
parent c00edef69c
commit ff57b5b270

View file

@ -266,7 +266,7 @@ class KiCadHelper
if ($part->getManufacturer() !== null) { if ($part->getManufacturer() !== null) {
$result["fields"]["manf"] = $this->createField($part->getManufacturer()->getName()); $result["fields"]["manf"] = $this->createField($part->getManufacturer()->getName());
} }
if ($part->getManufacturerProductNumber() !== null) { if ($part->getManufacturerProductNumber() !== "") {
$result['fields']['manf#'] = $this->createField($part->getManufacturerProductNumber()); $result['fields']['manf#'] = $this->createField($part->getManufacturerProductNumber());
} }