Skip to content

Commit f174eff

Browse files
committed
linting fix
1 parent 7eb4e5a commit f174eff

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/cam.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,9 @@ Cam.prototype.digestAuth = function(wwwAuthenticate, reqOptions) {
405405
ha1.update([this.username, challenge.realm, this.password].join(':'));
406406

407407
// Sony SRG-XP1 sends qop="auth,auth-int" it means the Server will accept either "auth" or "auth-int". We select "auth"
408-
if (typeof challenge.qop === 'string' && challenge.qop === 'auth,auth-int') challenge.qop = 'auth';
408+
if (typeof challenge.qop === 'string' && challenge.qop === 'auth,auth-int') {
409+
challenge.qop = 'auth';
410+
}
409411

410412
const ha2 = crypto.createHash('md5');
411413
ha2.update([reqOptions.method, reqOptions.path].join(':'));

lib/ptz.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,9 @@ module.exports = function(Cam) {
383383
// Nov 2025 - skip over 'extension'
384384
configOptions.ptzspaces = [];
385385
for (const key of Object.keys(sp)) {
386-
if (key == 'extension') continue;
386+
if (key == 'extension') {
387+
continue;
388+
}
387389
for (const item of sp[key]) {
388390
let data = {
389391
name: key,

0 commit comments

Comments
 (0)