Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/DiffEngine/Guard.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
static class Guard
{
public static void AgainstNegativeAndZero(int value, string argumentName)
public static void AgainstNegative(int value, string argumentName)
{
if (value <= 0)
if (value < 0)
{
throw new ArgumentOutOfRangeException(argumentName);
}
Expand Down
4 changes: 2 additions & 2 deletions src/DiffEngine/MaxInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ static int GetMaxInstances() =>

public static void SetForAppDomain(int value)
{
Guard.AgainstNegativeAndZero(value, nameof(value));
Guard.AgainstNegative(value, nameof(value));
appDomainMaxInstancesToLaunch = value;
ResetCapturedValue();
}

public static void SetForUser(int value)
{
Guard.AgainstNegativeAndZero(value, nameof(value));
Guard.AgainstNegative(value, nameof(value));
EnvironmentHelper.Set("DiffEngine_MaxInstances", value.ToString());
ResetCapturedValue();
}
Expand Down
4 changes: 2 additions & 2 deletions src/DiffEngineTray/Settings/OptionsForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project>
<PropertyGroup>
<NoWarn>CS1591;CS0649;NU1608;NU1109</NoWarn>
<Version>16.7.1</Version>
<Version>16.7.2</Version>
<AssemblyVersion>1.0.0</AssemblyVersion>
<PackageTags>Testing, Snapshot, Diff, Compare</PackageTags>
<Description>Launches diff tools based on file extensions. Designed to be consumed by snapshot testing libraries.</Description>
Expand Down