-1

How Do I fix

FIRStorageUploadTask *uploadTask = [uploadRef putData:data metadata:metadata completion:^(FIRStorageMetadata * Nullable

enter image description here

rmaddy
  • 314,917
  • 42
  • 532
  • 579

1 Answers1

1

Just remove FIRStorageUploadTask *uploadTask = and keep

[uploadRef putData:data metadata:metadata 

Also use @discardableResult if it again throws warning of unused result

OR

If you want to particularly suppress a warning you can check this answer: https://stackoverflow.com/a/25700438/468724

Community
  • 1
  • 1
Inder Kumar Rathore
  • 39,458
  • 17
  • 135
  • 184