赋值不是表达式,在这种情况下只允许表达式我不知道如何解决这个问题
private fun uploadImageToFirebaswStorage(){
if (selectedphotoUri = null) return
val filename = UUID.randomUUID().toString()
val ref = FirebaseStorage.getInstance().getReference("/images/$filename")
ref.putFile(selectedphotoUri!!)
.addOnSuccessListener {
Log.d("Register","Successfully uploaded image: ${it.metadata?.path}")}