From dad7404fdc4018e275261faf508578b99ea03182 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 7 Dec 2016 20:51:22 +0100 Subject: [PATCH] remove a redundant variable --- .../simplemobiletools/gallery/activities/ViewPagerActivity.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt index c32ea4af9..457d08458 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt @@ -212,9 +212,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View file.delete() } - val deleted = deleteFromMediaStore(file) - - if (deleted) { + if (deleteFromMediaStore(file)) { reloadViewPager() } else { scanFile(file) {