Remove a redundant check. 76/318576/6
authorMichal Bloch <m.bloch@samsung.com>
Mon, 3 Feb 2025 19:07:52 +0000 (20:07 +0100)
committerMichal Bloch <m.bloch@samsung.com>
Tue, 4 Feb 2025 13:30:04 +0000 (14:30 +0100)
Change-Id: I86ae8fecafe17627ebcb2e0955e6faccfed8caeb

src/service/src/dir_backend_regular_dir.cpp

index 43422034b92ddb9fc66b65cba484f99162d939fc..38a005cd5b1a54acee31e08e710924e21fe14de9 100644 (file)
@@ -37,8 +37,7 @@ void DirBackendRegularDir::RemoveSubsession (const fs::path& subsession_path)
 
        /* Ensure that any possible residue from previously
         * failed subsession deletion is cleaned up. */
-       if (fs::exists(tmp_subsession_path))
-               fs::remove_all(tmp_subsession_path);
+       fs::remove_all(tmp_subsession_path);
 
        /* Renaming also removes whatever was under the tmp path, which
         * could be residue left over from an earlier failed removal attempt. */