Skip to content

Commit b835fbb

Browse files
committed
windows: fix build errors
1 parent 3b14ac9 commit b835fbb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SimpleWeather.Shared/Utils/AirQualityUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ public static int AQINO2(double value)
359359
}
360360

361361
#if WINUI
362-
public static Windows.UI.Color GetColorFromIndex(int index)
362+
public static Windows.UI.Color GetColorFromIndex(int? index)
363363
{
364364
return index switch
365365
{

SimpleWeather.Shared/Utils/SentryLoggingTree.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#if !UNIT_TEST && (WINDOWS || __MACCATALYST__)
2+
using Sentry;
23
using System;
34
using System.Collections.Generic;
4-
using Sentry;
55
using TimberLog;
66

77
namespace SimpleWeather.Utils
@@ -79,7 +79,7 @@ public static BreadcrumbLevel ToBreadcrumbLevel(this TimberLog.LoggerLevel level
7979
TimberLog.LoggerLevel.Info => BreadcrumbLevel.Info,
8080
TimberLog.LoggerLevel.Warn => BreadcrumbLevel.Warning,
8181
TimberLog.LoggerLevel.Error => BreadcrumbLevel.Error,
82-
TimberLog.LoggerLevel.Fatal => BreadcrumbLevel.Critical,
82+
TimberLog.LoggerLevel.Fatal => BreadcrumbLevel.Fatal,
8383
_ => BreadcrumbLevel.Info
8484
};
8585
}

0 commit comments

Comments
 (0)