From e14b9f7a252142edc4ea9f054cb801358afb883e Mon Sep 17 00:00:00 2001
From: PabloMK7 <hackyglitch2@gmail.com>
Date: Thu, 27 Oct 2022 01:09:18 +0200
Subject: [PATCH] Fix clang-format and unused include

---
 src/core/core.cpp              | 1 -
 src/core/hle/service/am/am.cpp | 7 ++++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/core/core.cpp b/src/core/core.cpp
index accf52e4f..55c65d125 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -31,7 +31,6 @@
 #include "core/hle/kernel/kernel.h"
 #include "core/hle/kernel/process.h"
 #include "core/hle/kernel/thread.h"
-#include "core/hle/service/am/am.h"
 #include "core/hle/service/apt/applet_manager.h"
 #include "core/hle/service/apt/apt.h"
 #include "core/hle/service/fs/archive.h"
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index dddd2aacf..48de08702 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -321,10 +321,11 @@ bool CIAFile::Close() const {
             // If the file to delete is the current launched rom, signal the system to delete
             // the current rom instead of deleting it now, once all the handles to the file
             // are closed.
-            std::string toDelete = GetTitleContentPath(media_type, old_tmd.GetTitleID(), old_index);
+            std::string to_delete =
+                GetTitleContentPath(media_type, old_tmd.GetTitleID(), old_index);
             if (!(Core::System::GetInstance().IsPoweredOn() &&
-                  Core::System::GetInstance().SetSelfDelete(toDelete)))
-                FileUtil::Delete(toDelete);
+                  Core::System::GetInstance().SetSelfDelete(to_delete)))
+                FileUtil::Delete(to_delete);
         }
 
         FileUtil::Delete(old_tmd_path);