From d1f77d75a0bfd01c86740f16fb93c70dd4608b45 Mon Sep 17 00:00:00 2001 From: syo68k Date: Sun, 26 Sep 2010 13:10:28 +0000 Subject: [PATCH] =?utf8?q?=E5=88=A4=E5=AE=9A=E3=82=B3=E3=83=BC=E3=83=89?= =?utf8?q?=E5=BE=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.sourceforge.jp/svnroot/tween/trunk@908 e39ad16e-3079-482e-bb30-4b4d378143b6 --- Tween/ApiInformation.vb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tween/ApiInformation.vb b/Tween/ApiInformation.vb index 726e6dc3..0590a09a 100644 --- a/Tween/ApiInformation.vb +++ b/Tween/ApiInformation.vb @@ -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 -- 2.11.0