Skip to content

Commit

Permalink
Fix return type for getLookupURL()
Browse files Browse the repository at this point in the history
  • Loading branch information
pklaschka committed Sep 6, 2024
1 parent 3226a73 commit 76d5545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http/lookup-url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { CONFIG, isValidASN } from "$common/mod.ts";
* @returns the URL to lookup the ASN if the ASN lookup is enabled
* @throws {Error} when the ASN lookup is disabled or the ASN is invalid
*/
export function getLookupURL(asn: string) {
export function getLookupURL(asn: string): string {
const baseUrl = CONFIG.ASN_LOOKUP_URL;

if (!baseUrl) {
Expand Down

0 comments on commit 76d5545

Please sign in to comment.