From 6caff4e98736a71872efc0f8ea5672337ac4b1d5 Mon Sep 17 00:00:00 2001 From: Ken Matsui <26405363+ken-matsui@users.noreply.github.com> Date: Tue, 7 Jan 2025 08:47:18 -0500 Subject: [PATCH] Manifest: tryParse: findRecursive -> findRecursively --- src/Manifest.cc | 4 ++-- src/Manifest.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Manifest.cc b/src/Manifest.cc index b8fa27ac0..0e0c1a79b 100644 --- a/src/Manifest.cc +++ b/src/Manifest.cc @@ -434,8 +434,8 @@ findManifest(fs::path candidate) noexcept { } Result -Manifest::tryParse(fs::path path, const bool findRecursive) noexcept { - if (findRecursive) { +Manifest::tryParse(fs::path path, const bool findRecursively) noexcept { + if (findRecursively) { path = Try(findManifest(path.parent_path())); } return Manifest::tryFromToml(toml::parse(path), path); diff --git a/src/Manifest.hpp b/src/Manifest.hpp index bb3dc236a..ac0adf97d 100644 --- a/src/Manifest.hpp +++ b/src/Manifest.hpp @@ -134,7 +134,7 @@ struct Manifest { static Result tryParse( fs::path path = fs::current_path() / "cabin.toml", - bool findRecursive = true + bool findRecursively = true ) noexcept; static Result tryFromToml(const toml::value& data, fs::path path = "unknown") noexcept;