mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 02:24:11 +00:00
Fixed lint errors and add lint fix script
This commit is contained in:
8
src/app/core/cache/object-cache.reducer.ts
vendored
8
src/app/core/cache/object-cache.reducer.ts
vendored
@@ -45,7 +45,7 @@ export class CacheableObject extends TypedObject implements HALResource {
|
||||
|
||||
_links: {
|
||||
self: HALLink;
|
||||
}
|
||||
};
|
||||
// isNew: boolean;
|
||||
// dirtyType: DirtyType;
|
||||
// hasDirtyAttributes: boolean;
|
||||
@@ -74,7 +74,7 @@ export class ObjectCacheEntry implements CacheEntry {
|
||||
* and ObjectCacheEntries as values
|
||||
*/
|
||||
export interface ObjectCacheState {
|
||||
[href: string]: ObjectCacheEntry
|
||||
[href: string]: ObjectCacheEntry;
|
||||
}
|
||||
|
||||
// Object.create(null) ensures the object has no default js properties (e.g. `__proto__`)
|
||||
@@ -98,11 +98,11 @@ export function objectCacheReducer(state = initialState, action: ObjectCacheActi
|
||||
}
|
||||
|
||||
case ObjectCacheActionTypes.REMOVE: {
|
||||
return removeFromObjectCache(state, action as RemoveFromObjectCacheAction)
|
||||
return removeFromObjectCache(state, action as RemoveFromObjectCacheAction);
|
||||
}
|
||||
|
||||
case ObjectCacheActionTypes.RESET_TIMESTAMPS: {
|
||||
return resetObjectCacheTimestamps(state, action as ResetObjectCacheTimestampsAction)
|
||||
return resetObjectCacheTimestamps(state, action as ResetObjectCacheTimestampsAction);
|
||||
}
|
||||
|
||||
case ObjectCacheActionTypes.ADD_PATCH: {
|
||||
|
Reference in New Issue
Block a user