chore(fs#openFile): flags are not optional
This commit is contained in:
parent
2284b3ef0a
commit
9435bd5493
@ -253,7 +253,7 @@ export default class RemoteHandlerAbstract {
|
||||
await this._mktree(normalizePath(dir))
|
||||
}
|
||||
|
||||
async openFile(path: string, flags?: string): Promise<FileDescriptor> {
|
||||
async openFile(path: string, flags: string): Promise<FileDescriptor> {
|
||||
path = normalizePath(path)
|
||||
|
||||
return {
|
||||
@ -417,7 +417,7 @@ export default class RemoteHandlerAbstract {
|
||||
return this._mktree(dir)
|
||||
}
|
||||
|
||||
async _openFile(path: string, flags?: string): Promise<mixed> {
|
||||
async _openFile(path: string, flags: string): Promise<mixed> {
|
||||
throw new Error('Not implemented')
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user