Skip to content

Commit 0d59f16

Browse files
committed
Update functions.ts
1 parent e3b9ab4 commit 0d59f16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/functions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export async function getDomains(
8282
return true;
8383
});
8484

85-
return result_limit >= 0 ? results : results.slice(0, result_limit);
85+
return result_limit <= 0 ? results : results.slice(0, result_limit);
8686
}
8787

8888
export async function getUsernames(client: ExtendedClient, options?: { result_limit: number }): Promise<string[]> {
@@ -104,7 +104,7 @@ export async function getUsernames(client: ExtendedClient, options?: { result_li
104104
new Set(client.rawAPICache.map((entry: Domain) => entry.owner.username.toLowerCase()))
105105
).sort();
106106

107-
return result_limit >= 0 ? results : results.slice(0, result_limit);
107+
return result_limit <= 0 ? results : results.slice(0, result_limit);
108108
}
109109

110110
export function loadHandlers(client: ExtendedClient): void {

0 commit comments

Comments
 (0)