Skip to content

Commit

Permalink
fix linter issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
jens-maus committed Nov 9, 2023
1 parent bbdac99 commit 598430f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions unifi.js
Original file line number Diff line number Diff line change
Expand Up @@ -3003,14 +3003,14 @@ class Controller extends EventEmitter {
httpsAgent: new HttpsCookieAgent({cookies: {jar}, rejectUnauthorized: this.opts.sslverify, requestCert: true})
});

// identify if this is UniFiOS or not by calling the baseURL without
// Identify if this is UniFiOS or not by calling the baseURL without
// any path and then check for the return code, etc.
const response = await this._instance.get(this._baseurl.toString(), {
timeout: this.opts.timeout
});

Check failure on line 3010 in unifi.js

View workflow job for this annotation

GitHub Actions / build (16.x)

Mixed spaces and tabs.

Check failure on line 3011 in unifi.js

View workflow job for this annotation

GitHub Actions / build (16.x)

Expected indentation of 6 spaces but found 12.
// check for UniFiOS
if (response.status === 302 && response.headers['location'] === '/manage') {
// Check for UniFiOS
if (response.status === 302 && response.headers.location === '/manage') {
this._unifios = false;

Check failure on line 3014 in unifi.js

View workflow job for this annotation

GitHub Actions / build (16.x)

Mixed spaces and tabs.
} else if (response.status === 200) {
this._unifios = true;
Expand Down

0 comments on commit 598430f

Please sign in to comment.