Last active
April 5, 2021 17:51
-
-
Save ch8n/1591ff6568315d43b940bc8c8ffdb600 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(){ | |
val imageFile = this.imageFile | |
if(imageFile != null) { | |
if(imageFile.exists()) imageFile.delete() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment