mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-13 15:58:06 +02:00
Fix lint
This commit is contained in:
@@ -27,7 +27,7 @@ module.exports = class PrimeCommand extends Command {
|
||||
isPrime(number) {
|
||||
if (number < 2) return false;
|
||||
for (let i = 2, s = Math.sqrt(number); i <= s; i++) {
|
||||
if (number % i === 0) return false;
|
||||
if (number % i === 0) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user