use correct types for sameOrSubdomainOf
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
This commit is contained in:
parent
0f709026b1
commit
b3e01fcd6a
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ const deadThreshold = 7 * DAY;
|
|||
* @param blockedHost punycoded instance host that is blocked
|
||||
* @returns whether host and blockedHost is the same or if host is a subdomain of blockedHost
|
||||
*/
|
||||
function sameOrSubdomainOf(host: string, blockedHost: string): boolean {
|
||||
function sameOrSubdomainOf(host: Instance['host'], blockedHost: Instance['host']): boolean {
|
||||
return host === blockedHost || host.endsWith('.' + blockedHost);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue