Skip to content

Commit b0b9212

Browse files
committed
remove unneeded undefined check
1 parent cc11c7f commit b0b9212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/api/apiUtils/rateLimit/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function getCachedRateLimitConfig(request) {
144144

145145
function buildRateChecksFromConfig(resourceClass, resourceId, limitConfig) {
146146
const checks = [];
147-
if (limitConfig?.RequestsPerSecond?.Limit !== undefined && limitConfig.RequestsPerSecond?.Limit > 0) {
147+
if (limitConfig.RequestsPerSecond?.Limit > 0) {
148148
checks.push({
149149
resourceClass,
150150
resourceId,

0 commit comments

Comments
 (0)