Skip to content

Commit 409c60a

Browse files
Ready for release.
1 parent 0c6154d commit 409c60a

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

Program.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,13 @@ static int RunSetAndReturnExitCode(SetOptions o)
3838
// brightness must be a double. cast or this doesn't work
3939
DisplayConfiguration.SetMonitorBrightness(monitors[o.MonitorIndex], (double)o.Brightness/ 100);
4040
}
41-
else
42-
{
43-
Console.WriteLine("Brightness value must be between 0-100.");
44-
return 1;
45-
}
4641

4742
if (o.Contrast >= 0 && o.Contrast <= 100 && o.MonitorIndex >= 0 && o.MonitorIndex < monitors.Count())
4843
{
4944
verbose.WriteLine($"Setting contrast to {o.Contrast}.");
5045
// contrast must be a double. cast or this doesn't work
5146
DisplayConfiguration.SetMonitorContrast(monitors[o.MonitorIndex], (double)o.Contrast / 100);
5247
}
53-
else
54-
{
55-
Console.WriteLine("Contrast value must be between 0-100.");
56-
return 1;
57-
}
5848

5949
return 0;
6050
}

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ deploy:
4141
force_update: true
4242
provider: GitHub
4343
auth_token:
44-
secure: FsKnR43Zii08An/ZRYLWntg4qBSiLEqamIul0nAT4Qs3zdt3PwIAlKZhA/uFo2m6
44+
secure: 17sEgxLhEIIRLDk1ooeHaWBT9fCpr6kyvmrSbvFOc9c6ZG/j+rJ3Glxpxz0yE/Iz
4545
artifact: lux-v$(appveyor_build_version).zip
4646
draft: false
4747
prerelease: false

0 commit comments

Comments
 (0)