Skip to content

Commit fcd997d

Browse files
committed
fix: linting issues
1 parent dbbf4c8 commit fcd997d

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module.exports = {
22
root: true,
33
extends: ['airbnb-base', 'prettier'],
44
rules: {
5-
'import/extensions': "always", // Better for native ES Module usage
5+
'import/extensions': 2, // Better for native ES Module usage
66
'no-console': 0, // We can remove this later
77
'no-underscore-dangle': 0,
88
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],

src/api.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { multipartEncode, multipartDecode } from './message.js';
1+
import { multipartEncode, multipartDecode } from './message';
22

33
function isObject(obj) {
44
return typeof obj === 'object' && obj !== null;
@@ -307,7 +307,7 @@ class DICOMwebClient {
307307
}
308308

309309
if (requestHooks && areValidRequestHooks(requestHooks)) {
310-
const combinedHeaders = Object.assign({}, headers, this.headers);
310+
const combinedHeaders = { ...headers, ...this.headers };
311311
const metadata = { method, url, headers: combinedHeaders };
312312
const pipeRequestHooks = functions => args =>
313313
functions.reduce((props, fn) => fn(props, metadata), args);
@@ -1103,7 +1103,6 @@ class DICOMwebClient {
11031103
*/
11041104
searchForInstances(options = {}) {
11051105
let url = this.qidoURL;
1106-
let withCredentials = false;
11071106
if ('studyInstanceUID' in options) {
11081107
url += `/studies/${options.studyInstanceUID}`;
11091108
if ('seriesInstanceUID' in options) {
@@ -1750,8 +1749,6 @@ class DICOMwebClient {
17501749
byteRange,
17511750
false,
17521751
false,
1753-
progressCallback,
1754-
withCredentials,
17551752
);
17561753
}
17571754
} catch (e) {

0 commit comments

Comments
 (0)