Remove superfluous check for yet undescribed external noda repos

This commit is contained in:
Joshua Ramon Enslin 2022-01-18 00:48:32 +01:00
parent e7f1515227
commit 09a5096588
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -785,9 +785,11 @@ final class NodaWikidataFetcher {
foreach ($nodaLinks as $noda_source => $nodaId) {
if ($nodaId === null) continue;
/*
if (!isset(self::URL_PREFIXES_PLACES_NODA_SOURCE[$noda_source])) {
throw new Exception("Unknown noda link: " . $noda_source);
}
*/
$noda_link_url = self::URL_PREFIXES_PLACES_NODA_SOURCE[$noda_source] . $nodaId;
$insertNodaLinkStmt->bind_param("isssssss", $persinst_id, $noda_source, $nodaId, $noda_link_url, $erfasst_von, $nodaId, $noda_link_url, $noda_link_url);
@ -1130,9 +1132,11 @@ final class NodaWikidataFetcher {
foreach ($nodaLinks as $noda_source => $nodaId) {
/*
if (!isset(self::URL_PREFIXES_PLACES_NODA_SOURCE[$noda_source])) {
throw new Exception("Unknown noda link: " . $noda_source);
}
*/
$noda_link_url = self::URL_PREFIXES_PLACES_NODA_SOURCE[$noda_source] . $nodaId;
$insertNodaLinkStmt->bind_param("issssss", $onum, $noda_source, $nodaId, $noda_link_url, $erfasst_von, $nodaId, $noda_link_url);