Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 450b313

Browse files
committed
use auto for abs_base path
1 parent d34279c commit 450b313

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/repositories/file_fs_repository.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ std::filesystem::path FileFsRepository::GetFilePath() const {
1313
std::filesystem::path SanitizePath(const std::filesystem::path & user_input,
1414
const std::filesystem::path & basedir) {
1515

16-
std::filesystem::path abs_base = std::filesystem::canonical(basedir);
16+
auto abs_base = std::filesystem::canonical(basedir);
1717
std::filesystem::path resolved_path = std::filesystem::weakly_canonical(
1818
std::filesystem::path(basedir) / std::filesystem::path(user_input));
1919
/* Ensure the resolved path is within our basedir */

0 commit comments

Comments
 (0)