Created
April 3, 2021 19:31
-
-
Save ch8n/d58bc6ceead35cec2cb3719dd0c1fae9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo { | |
var imageFile : File ? = ... | |
fun deleteImage(){ | |
// 🧐 you can get away for now | |
imageFile?.let { image -> | |
if(image.exists()) image.delete() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment