OSDN Git Service

判定コード微修正
authorsyo68k <syo68k@users.sourceforge.jp>
Sun, 26 Sep 2010 13:10:28 +0000 (13:10 +0000)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sat, 18 Feb 2012 14:15:35 +0000 (23:15 +0900)
git-svn-id: http://svn.sourceforge.jp/svnroot/tween/trunk@908 e39ad16e-3079-482e-bb30-4b4d378143b6

Tween/ApiInformation.vb

index 726e6dc..0590a09 100644 (file)
@@ -147,7 +147,7 @@ Public Class ApiInformation
     Private ReadOnly Property RemainCountFromHttpHeader() As Integer
         Get
             Dim result As Integer = 0
-            If HttpHeaders("X-RateLimit-Remaining") = "" Then Return -1
+            If String.IsNullOrEmpty(HttpHeaders("X-RateLimit-Remaining")) Then Return -1
             If Integer.TryParse(HttpHeaders("X-RateLimit-Remaining"), result) Then
                 Return result
             End If
@@ -158,7 +158,7 @@ Public Class ApiInformation
     Private ReadOnly Property MaxCountFromHttpHeader() As Integer
         Get
             Dim result As Integer = 0
-            If HttpHeaders("X-RateLimit-Limit") = "" Then Return -1
+            If String.IsNullOrEmpty(HttpHeaders("X-RateLimit-Limit")) Then Return -1
             If Integer.TryParse(HttpHeaders("X-RateLimit-Limit"), result) Then
                 Return result
             End If