Skip to content

Commit

Permalink
fix: Remove metadata content-type assumption from FileDataAccessor
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimvh committed Dec 18, 2020
1 parent d7434df commit 1464288
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/storage/accessors/FileDataAccessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import type { NamedNode, Quad } from 'rdf-js';
import type { Representation } from '../../ldp/representation/Representation';
import { RepresentationMetadata } from '../../ldp/representation/RepresentationMetadata';
import type { ResourceIdentifier } from '../../ldp/representation/ResourceIdentifier';
import { TEXT_TURTLE } from '../../util/ContentTypes';
import { ConflictHttpError } from '../../util/errors/ConflictHttpError';
import { NotFoundHttpError } from '../../util/errors/NotFoundHttpError';
import { isSystemError } from '../../util/errors/SystemError';
Expand Down Expand Up @@ -166,7 +165,7 @@ export class FileDataAccessor implements DataAccessor {
* Starts from the identifier to make sure any potentially added extension has no impact on the path.
*/
private async getMetadataPath(identifier: ResourceIdentifier): Promise<string> {
return (await this.resourceMapper.mapUrlToFilePath({ path: `${identifier.path}.meta` }, TEXT_TURTLE)).filePath;
return (await this.resourceMapper.mapUrlToFilePath({ path: `${identifier.path}.meta` })).filePath;
}

/**
Expand Down

0 comments on commit 1464288

Please sign in to comment.