mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Update eslint related dependencies
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { Patch } from '../ldp/http/Patch';
|
||||
import { ResourceIdentifier } from '../ldp/representation/ResourceIdentifier';
|
||||
import { Conditions } from './Conditions';
|
||||
import type { Patch } from '../ldp/http/Patch';
|
||||
import type { ResourceIdentifier } from '../ldp/representation/ResourceIdentifier';
|
||||
import type { Conditions } from './Conditions';
|
||||
import { PassthroughStore } from './PassthroughStore';
|
||||
import { PatchHandler } from './patch/PatchHandler';
|
||||
import { ResourceStore } from './ResourceStore';
|
||||
import type { PatchHandler } from './patch/PatchHandler';
|
||||
import type { ResourceStore } from './ResourceStore';
|
||||
|
||||
/**
|
||||
* {@link ResourceStore} using decorator pattern for the `modifyResource` function.
|
||||
@@ -21,7 +21,7 @@ export class PatchingStore<T extends ResourceStore = ResourceStore> extends Pass
|
||||
public async modifyResource(identifier: ResourceIdentifier, patch: Patch, conditions?: Conditions): Promise<void> {
|
||||
try {
|
||||
return await this.source.modifyResource(identifier, patch, conditions);
|
||||
} catch (error) {
|
||||
} catch {
|
||||
return this.patcher.handleSafe({ identifier, patch });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user