fixed clazy warning

This commit is contained in:
silverqx
2023-10-07 14:13:22 +02:00
parent 193486e1a3
commit 2241f71276
2 changed files with 3 additions and 3 deletions
@@ -43,9 +43,9 @@ namespace Tom::Commands::Make
the default path. */
static fspath
guessPathForMakeByPwd(const fspath &defaultPath,
const std::optional<
std::optional<
std::reference_wrapper<const fspath>
> &defaultModelsPath = std::nullopt);
> defaultModelsPath = std::nullopt);
private:
/*! Ensure that a file in the given folder doesn't already exist. */
+1 -1
View File
@@ -53,7 +53,7 @@ void MakeCommand::throwIfContainsNamespaceOrPath(
fspath MakeCommand::guessPathForMakeByPwd(
const fspath &defaultPath,
const std::optional<std::reference_wrapper<const fspath>> &defaultModelsPath)
std::optional<std::reference_wrapper<const fspath>> defaultModelsPath)
{
/* Method is commented on heavily because the logic is sketchy and unclear. 😵‍💫🙃
It tries to guess a path based on the pwd and the defaultPath (can be relative