OSDN Git Service

defaultを単純化
authorKimura Youichi <kim.upsilon@bucyou.net>
Sun, 23 Jun 2019 08:28:36 +0000 (17:28 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sun, 23 Jun 2019 08:52:52 +0000 (17:52 +0900)
OpenTween/LRUCacheDictionary.cs
OpenTween/Models/TabModel.cs

index 05ee80c..1003f49 100644 (file)
@@ -160,7 +160,7 @@ namespace OpenTween
 
             if (!ret)
             {
-                value = default(TValue);
+                value = default;
                 return false;
             }
 
index c5f9fcc..e8c485d 100644 (file)
@@ -180,7 +180,7 @@ namespace OpenTween.Models
                 => index >= 0 && index < this.AllCount;
 
             var firstErrorId = indices.FirstOrDefault(x => !IsValidIndex(x));
-            if (firstErrorId != default(int))
+            if (firstErrorId != default)
                 throw new ArgumentOutOfRangeException($"Invalid index: {firstErrorId}", nameof(indices));
 
             var statusIds = indices.Select(x => this.GetStatusIdAt(x)).ToList();