mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 12:03:19 +00:00
aaaand format the code
This commit is contained in:
@@ -18,14 +18,14 @@ namespace Octokit
|
||||
: ISerializable
|
||||
#endif
|
||||
{
|
||||
public RateLimit() {}
|
||||
public RateLimit() { }
|
||||
|
||||
public RateLimit(IDictionary<string, string> responseHeaders)
|
||||
{
|
||||
Ensure.ArgumentNotNull(responseHeaders, "responseHeaders");
|
||||
|
||||
Limit = (int) GetHeaderValueAsInt32Safe(responseHeaders, "X-RateLimit-Limit");
|
||||
Remaining = (int) GetHeaderValueAsInt32Safe(responseHeaders, "X-RateLimit-Remaining");
|
||||
Limit = (int)GetHeaderValueAsInt32Safe(responseHeaders, "X-RateLimit-Limit");
|
||||
Remaining = (int)GetHeaderValueAsInt32Safe(responseHeaders, "X-RateLimit-Remaining");
|
||||
ResetAsUtcEpochSeconds = GetHeaderValueAsInt32Safe(responseHeaders, "X-RateLimit-Reset");
|
||||
}
|
||||
|
||||
@@ -113,6 +113,5 @@ namespace Octokit
|
||||
ResetAsUtcEpochSeconds = this.ResetAsUtcEpochSeconds
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user