Skip to content

Commit b44283b

Browse files
authored
fix(storage): writeToFile if/else statement (#57)
1 parent 45d5241 commit b44283b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firebase-storage/index.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ export class Reference implements IReference {
557557

558558
writeToFile(localFilePath: string): Task {
559559
let url;
560-
if (localFilePath?.indexOf('file:')) {
560+
if (localFilePath?.indexOf('file:') > -1) {
561561
url = NSURL.URLWithString(localFilePath);
562562
} else {
563563
url = NSURL.fileURLWithPath(localFilePath);

0 commit comments

Comments
 (0)