Skip to content

Commit 568fd9e

Browse files
Jakub SzczyrkJakub Szczyrk
authored andcommitted
Add assertions in SourceFile with null checks
1 parent 7da8661 commit 568fd9e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Assets/PatchKit Patcher/Scripts/AppUpdater/Commands/InstallContentCommand.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,11 @@ struct SourceFile
224224

225225
public SourceFile(string name, string root, string suffix, string hash)
226226
{
227+
Assert.IsNotNull(name);
228+
Assert.IsNotNull(root);
229+
Assert.IsNotNull(suffix);
230+
Assert.IsNotNull(hash);
231+
227232
Name = name;
228233
_root = root;
229234
_suffix = suffix;

0 commit comments

Comments
 (0)