Skip to content

Commit

Permalink
fix(FileLibraryStorage): Removed hardcoded FileLibraryStorage directo…
Browse files Browse the repository at this point in the history
…ry (#383)
  • Loading branch information
sr258 authored Mar 8, 2020
1 parent 9d68104 commit 7d7bd0c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion src/LibraryManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,6 @@ export default class LibraryManager {
library,
'library.json'
);
libraryMetadata.libraryId = await this.libraryExists(library);
return libraryMetadata;
} catch (ignored) {
log.warn(
Expand Down
8 changes: 1 addition & 7 deletions src/implementation/fs/FileLibraryStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,7 @@ export default class FileLibraryStorage implements ILibraryStorage {
);
}

return fsExtra.createReadStream(
path.join(
this.librariesDirectory,
LibraryName.toUberName(library),
filename
)
);
return fsExtra.createReadStream(this.getFilePath(library, filename));
}

/**
Expand Down

0 comments on commit 7d7bd0c

Please sign in to comment.