From: Michal Bloch Date: Mon, 3 Feb 2025 19:07:52 +0000 (+0100) Subject: Remove a redundant check. X-Git-Tag: accepted/tizen/unified/20250207.071317~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f9da3d2aceabb2cedcaac87f407a653dbe80cc26;p=platform%2Fcore%2Fsystem%2Fsessiond.git Remove a redundant check. Change-Id: I86ae8fecafe17627ebcb2e0955e6faccfed8caeb --- diff --git a/src/service/src/dir_backend_regular_dir.cpp b/src/service/src/dir_backend_regular_dir.cpp index 4342203..38a005c 100644 --- a/src/service/src/dir_backend_regular_dir.cpp +++ b/src/service/src/dir_backend_regular_dir.cpp @@ -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. */