remove a redundant variable

This commit is contained in:
tibbi 2016-12-07 20:51:22 +01:00
parent 86d9652204
commit dad7404fdc

View file

@ -212,9 +212,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
file.delete() file.delete()
} }
val deleted = deleteFromMediaStore(file) if (deleteFromMediaStore(file)) {
if (deleted) {
reloadViewPager() reloadViewPager()
} else { } else {
scanFile(file) { scanFile(file) {