1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-30 03:23:16 +02:00

Fix indent

This commit is contained in:
Eelco Dolstra 2023-12-21 16:22:34 +01:00
parent 9d9d9ff0de
commit d77a39a314
2 changed files with 24 additions and 23 deletions

View file

@ -13,7 +13,8 @@ static const std::regex gitProviderRegex("github|gitlab|sourcehut");
static const std::regex gitSchemeRegex("git($|\\+.*)");
static const std::regex defaultOutputRegex(".*\\.default($|\\^.*)");
std::optional<std::string> getNameFromURL(ParsedURL url) {
std::optional<std::string> getNameFromURL(const ParsedURL & url)
{
std::smatch match;
/* If there is a dir= argument, use its value */

View file

@ -15,6 +15,6 @@ namespace nix {
* flake output, for example because it is empty or "default".
* Otherwise returns the extracted name.
*/
std::optional<std::string> getNameFromURL(ParsedURL url);
std::optional<std::string> getNameFromURL(const ParsedURL & url);
}