Skip to content

Commit

Permalink
Eliminating jslint warnings/errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bay-andreykalashnikov committed Oct 24, 2020
1 parent a3f8f14 commit 35a79dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pkgcloud/rackspace/dns/client/records.js
Expand Up @@ -31,10 +31,10 @@ module.exports = {
getRecordsPaged: function (zone, page, callback) {
var self = this,
zoneId = zone instanceof dns.Zone ? zone.id : zone,
limit = page && page.limit && parseInt(page.limit) <= 100
limit = page && page.limit && page.limit <= 100
? parseInt(page.limit)
: _defaultLimitValue,
offset = page && page.offset && !(parseInt(page.offset) % limit)
offset = page && page.offset && page.offset % limit === 0
? parseInt(page.offset)
: _defaultOffsetValue,
params = '?' + [[_limitParam, limit].join('='), [_offsetParam, offset].join('=')].join('&');
Expand Down

0 comments on commit 35a79dc

Please sign in to comment.