[go: nahoru, domu]

Skip to content

Commit

Permalink
resolve incorrect and unecessary formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Drake committed Oct 6, 2022
1 parent 8fbda7c commit a946929
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Smidge.Core/CompositeFiles/DefaultUrlManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public DefaultUrlManager(IOptions<SmidgeOptions> options, IHasher hasher, IReque
_hasher = hasher;
_requestHelper = requestHelper;
_options = options.Value.UrlOptions;
_config = config;
_config = config;
}

public string AppendCacheBuster(string url, bool debug, string cacheBusterValue)
Expand Down Expand Up @@ -162,7 +162,7 @@ public ParsedUrlPath ParsePath(string input)
private string GetCompositeUrl(string fileKey, string fileExtension, string cacheBusterValue)
{
//Create a delimited URL query string

string handler = _config.KeepFileExtensions ? "~/{0}/{1}.v{3}{2}" : "~/{0}/{1}{2}.v{3}";
return _requestHelper.Content(
string.Format(
Expand Down
4 changes: 2 additions & 2 deletions src/Smidge.Core/SmidgeConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public SmidgeConfig()

public string DataFolder => (_config["dataFolder"] ?? "Smidge").Replace('/', Path.DirectorySeparatorChar);

public bool KeepFileExtensions => bool.Parse((_config["keepFileExtensions"] ?? "false"));
public bool KeepFileExtensions => bool.Parse((_config["keepFileExtensions"] ?? "false"));

}
}

0 comments on commit a946929

Please sign in to comment.