Skip to content

Commit

Permalink
update formatting
Browse files Browse the repository at this point in the history
Co-authored-by: Phillip Carter <[email protected]>
  • Loading branch information
MikeGoldsmith and cartermp authored Mar 5, 2024
1 parent 52d6372 commit 779ecd5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Honeycomb.OpenTelemetry/HoneycombOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,19 @@ public class HoneycombOptions
/// <remarks>
/// Classic configuration keys have 32 characters and classic ingest keys have 64 characters.
/// </remarks>
internal static bool IsClassicKey(string apikey) {
internal static bool IsClassicKey(string apikey)
{
if (String.IsNullOrEmpty(apikey))
{
return false;
return false;
}
else if (apikey.Length == 32)
{
return Regex.Match(apikey, ClassicKeyRegex).Success;
return Regex.Match(apikey, ClassicKeyRegex).Success;
}
else if (apikey.Length == 64)
{
return Regex.Match(apikey, IngestClassicKeyRegex).Success;
return Regex.Match(apikey, IngestClassicKeyRegex).Success;
}
return false;
}
Expand Down

0 comments on commit 779ecd5

Please sign in to comment.