Updated location of initialization

Test: tested flashall on raven
Bug: 194686221
Change-Id: Ie0dd7acd65833a938623e374e2b21e6bd6079d08
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp
index ffd4f67..256aeef 100644
--- a/fastboot/fastboot.cpp
+++ b/fastboot/fastboot.cpp
@@ -1621,9 +1621,7 @@
     // or in bootloader fastboot.
     FlashImages(boot_images_);
 
-    auto flash_super_task = FlashSuperLayoutTask::Initialize(fp_, os_images_);
-
-    if (flash_super_task) {
+    if (auto flash_super_task = FlashSuperLayoutTask::Initialize(fp_, os_images_)) {
         flash_super_task->Run();
     } else {
         // Sync the super partition. This will reboot to userspace fastboot if needed.