Skip to content

Commit

Permalink
Now the private funtion it not obsolete, errors are thrown unless #pr…
Browse files Browse the repository at this point in the history
…agma warning disable is used
  • Loading branch information
ryangribble committed Feb 26, 2016
1 parent e7f95a2 commit 78e7b49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Octokit/Helpers/ModelExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ public static bool HasSameDataAs(this SshKey key, SshKey otherKey)
return keyData != null && keyData == otherKey.GetKeyData();
}

#pragma warning disable CS0618
static string GetKeyData(this SshKey key)
{
var keyInfo = key.GetKeyDataAndName();
return keyInfo == null ? null : keyInfo.Data;
}
#pragma warning restore CS0618
}
}

0 comments on commit 78e7b49

Please sign in to comment.