Skip to content

Commit c55bc2c

Browse files
committed
minor
1 parent 4d02f6c commit c55bc2c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/GitVersionTask.MsBuild/PlatformAbstraction/Native/PlatformApis.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

@@ -78,12 +78,14 @@ private static string GetFreeBSDVersion()
7878
// This is same as sysctl kern.version
7979
// FreeBSD 11.0-RELEASE-p1 FreeBSD 11.0-RELEASE-p1 #0 r306420: Thu Sep 29 01:43:23 UTC 2016 [email protected]:/usr/obj/usr/src/sys/GENERIC
8080
// What we want is major release as minor releases should be compatible.
81+
// ReSharper disable once UnusedVariable
8182
String version = RuntimeInformation.OSDescription;
8283
try
8384
{
8485
// second token up to first dot
8586
return RuntimeInformation.OSDescription.Split()[1].Split('.')[0];
8687
}
88+
// ReSharper disable once EmptyGeneralCatchClause
8789
catch
8890
{
8991
}

0 commit comments

Comments
 (0)