Skip to content

Commit

Permalink
fix(fs): fs.source should really never be null
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Sep 16, 2021
1 parent 90c549d commit 05ee837
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 42 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/fs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Readable } from 'stream';
import { ChunkSource } from '.';
import { ChunkSource } from './source';

export interface FileInfo {
/** file path */
Expand Down
2 changes: 1 addition & 1 deletion packages/fs/src/fs.abstraction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class FileSystemAbstraction {
* @param filePath File to read
* @returns
*/
source(filePath: string): ChunkSource | null {
source(filePath: string): ChunkSource {
return this.get(filePath).source(filePath);
}

Expand Down
40 changes: 0 additions & 40 deletions packages/fs/src/fs.ts

This file was deleted.

0 comments on commit 05ee837

Please sign in to comment.