Skip to content

Commit

Permalink
Fixes #472: Remove the use of System.Diagnostics.Debug.Assert
Browse files Browse the repository at this point in the history
Direct use of `System.Diagnostics.Debug.Assert()` causes issue in
production environment.  Use Unity version of [Debug.Assert()](https://docs.unity3d.com/ScriptReference/Debug.Assert.html)
instead.
  • Loading branch information
chkuang-g committed Nov 11, 2021
1 parent 0ccd84e commit 31ff531
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/VersionHandlerImpl/src/VersionHandlerImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ public FileMetadataByVersion(string filenameCanonical) {
/// Add metadata to the set.
/// </summary>
public void Add(FileMetadata metadata) {
System.Diagnostics.Debug.Assert(
Debug.Assert(
filenameCanonical == null ||
metadata.filenameCanonical.Equals(filenameCanonical));
metadataByVersion[metadata.CalculateVersion()] = metadata;
Expand Down Expand Up @@ -2311,7 +2311,7 @@ static void UpdateVersionedAssetsOnUpdate() {
if (!Enabled) {
return;
}

UpdateVersionedAssets();
NotifyWhenCompliationComplete(false);
UpdateAssetsWithBuildTargets(EditorUserBuildSettings.activeBuildTarget);
Expand Down

0 comments on commit 31ff531

Please sign in to comment.