Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.

Commit

Permalink
Micro CC step
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Jul 3, 2009
1 parent 8958434 commit 5b95845
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/DotNetOpenAuth/OpenId/UriIdentifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,7 @@ private static bool IsAllowedScheme(Uri uri) {
/// require network access are also done, such as lower-casing the hostname in the URI.
/// </remarks>
private static bool TryCanonicalize(string uri, out Uri canonicalUri, bool forceHttpsDefaultScheme, out bool schemePrepended) {
Contract.Requires(!string.IsNullOrEmpty(uri));
Contract.Requires<ArgumentException>(!String.IsNullOrEmpty(uri));
Contract.Requires<ArgumentException>(!string.IsNullOrEmpty(uri));

uri = uri.Trim();
canonicalUri = null;
Expand Down
2 changes: 1 addition & 1 deletion src/DotNetOpenAuth/OpenId/XriIdentifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ internal XriIdentifier(string xri)
/// </param>
internal XriIdentifier(string xri, bool requireSsl)
: base(requireSsl) {
Contract.Requires((xri != null && xri.Length > 0) || !string.IsNullOrEmpty(xri));
Contract.Requires<ArgumentException>(!String.IsNullOrEmpty(xri));
ErrorUtilities.VerifyFormat(IsValidXri(xri), OpenIdStrings.InvalidXri, xri);
Contract.Assume(xri != null); // Proven by IsValidXri
this.xriResolverProxy = XriResolverProxyTemplate;
Expand Down

0 comments on commit 5b95845

Please sign in to comment.