mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-05-20 16:28:23 -05:00
fixed clazy warning
This commit is contained in:
@@ -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. */
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user