Skip to content

Commit

Permalink
fix: handle writeOptions when diskNameOrOptions is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Caglar committed Sep 25, 2024
1 parent 9478eda commit d18bde5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions providers/drive_provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export default class DriveProvider {

if (typeof diskNameOrOptions === 'string') {
diskName = diskNameOrOptions
options = writeOptions ?? undefined
} else if (diskNameOrOptions && !writeOptions) {
options = diskNameOrOptions
} else if (writeOptions) {
Expand Down

0 comments on commit d18bde5

Please sign in to comment.