Skip to content

Commit

Permalink
Removed unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
adolfintel committed Jul 28, 2024
1 parent dfddcb2 commit a53b4fe
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions backend/getIP.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,11 +348,7 @@ function calculateDistance($clientLocation, $serverLocation, $unit)
function getIspInfo_offlineDb($ip){
$reader = new Reader('country_asn.mmdb');
$record = $reader->get($ip);
if(is_null($record)){
return "{}";
}else{
return $record;
}
return $record;
}

/**
Expand Down

0 comments on commit a53b4fe

Please sign in to comment.