mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Bring lint config back to original strictness
This commit is contained in:
@@ -30,7 +30,7 @@ export class InMemoryDataAccessor implements DataAccessor, SingleThreaded {
|
||||
public constructor(identifierStrategy: IdentifierStrategy) {
|
||||
this.identifierStrategy = identifierStrategy;
|
||||
|
||||
this.store = { entries: { }};
|
||||
this.store = { entries: {}};
|
||||
}
|
||||
|
||||
public async canHandle(): Promise<void> {
|
||||
|
||||
@@ -65,7 +65,7 @@ export class MaxKeyLengthStorage<T> implements KeyValueStorage<string, T> {
|
||||
const parts = key.split('/');
|
||||
|
||||
// Prevent non-hashed keys with the prefix to prevent false hits
|
||||
if (parts[parts.length - 1].startsWith(this.hashPrefix)) {
|
||||
if (parts.at(-1)?.startsWith(this.hashPrefix)) {
|
||||
throw new NotImplementedHttpError(`Unable to store keys starting with ${this.hashPrefix}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user