Skip to content

Commit

Permalink
init the dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
Shazwazza committed Oct 21, 2024
1 parent adf921e commit ef0aa8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Smidge.Core/CompositeFiles/DefaultUrlManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public string GetUrl(string bundleName, string fileExtension, bool debug, string
var handler = _keepFileExtensions ? "~/{0}/{1}.{3}{4}{2}" : "~/{0}/{1}{2}.{3}{4}";
return _requestHelper.Content(string.Format(handler,
_options.BundleFilePath,
Uri.EscapeUriString(bundleName),
Uri.EscapeDataString(bundleName),
fileExtension,
debug ? 'd' : 'v',
cacheBusterValue));
Expand Down Expand Up @@ -167,9 +167,9 @@ private string GetCompositeUrl(string fileKey, string fileExtension, string cach
string.Format(
handler,
_options.CompositeFilePath,
Uri.EscapeUriString(fileKey),
Uri.EscapeDataString(fileKey),
fileExtension,
cacheBusterValue));
}
}
}
}
2 changes: 1 addition & 1 deletion src/Smidge/Controllers/SmidgeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace Smidge.Controllers
[AllowAnonymous]
public class SmidgeController : Controller
{
private static readonly ConcurrentDictionary<string, SemaphoreSlim> s_locks;
private static readonly ConcurrentDictionary<string, SemaphoreSlim> s_locks = new ConcurrentDictionary<string, SemaphoreSlim>();

private readonly ISmidgeFileSystem _fileSystem;
private readonly IBundleManager _bundleManager;
Expand Down

0 comments on commit ef0aa8a

Please sign in to comment.