mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 05:53:03 +00:00
ESLint: fix dangling commas
This commit is contained in:
@@ -36,12 +36,12 @@ function toHALResponse(req, data, included?) {
|
||||
const result = {
|
||||
_embedded: data,
|
||||
_links: {
|
||||
self: req.protocol + '://' + req.get('host') + req.originalUrl
|
||||
}
|
||||
self: req.protocol + '://' + req.get('host') + req.originalUrl,
|
||||
},
|
||||
};
|
||||
if (included && Array.isArray(included) && included.length > 0) {
|
||||
Object.assign(result, {
|
||||
included: included
|
||||
included: included,
|
||||
});
|
||||
}
|
||||
return result;
|
||||
|
@@ -11,5 +11,5 @@ export const fakeDemoRedisCache = {
|
||||
return cache;
|
||||
},
|
||||
set: (key, data) => fakeDemoRedisCache._cache[key] = data,
|
||||
clear: () => fakeDemoRedisCache._cache = {}
|
||||
clear: () => fakeDemoRedisCache._cache = {},
|
||||
};
|
||||
|
@@ -3,5 +3,5 @@ export const fakeDataBase = {
|
||||
get() {
|
||||
const res = { data: 'This fake data came from the db on the server.' };
|
||||
return Promise.resolve(res);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user