magic numbers (#4356)

This commit is contained in:
Laurin Quast 2024-03-26 16:53:01 +01:00 committed by GitHub
parent b49090375d
commit f80425c62e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,9 +16,9 @@ export function calculateTimeWindow({
throw new Error(`Invalid resolution. Expected an integer, received ${resolution}`);
}
if (resolution < 10 || resolution > maxResolution) {
if (resolution < 1 || resolution > maxResolution) {
throw new Error(
`Invalid resolution. Expected 10 <= x <= ${maxResolution}, received ${resolution}`,
`Invalid resolution. Expected 1 <= x <= ${maxResolution}, received ${resolution}`,
);
}