Skip to content

Commit

Permalink
Fixed property name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Atkinson committed Jul 13, 2017
1 parent 7ca3647 commit f2eb603
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Nancy.LeakyBucket/Identifiers/DefaultClientIdentifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
{
public class DefaultClientIdentifier : IClientIdentifier
{
public string UserAgentAddressAddress { get; }
public string UserAgentAddress { get; }

public DefaultClientIdentifier(string userAgentAddress)
{
UserAgentAddressAddress = userAgentAddress;
UserAgentAddress = userAgentAddress;
}

public override bool Equals(object obj)
{
return obj is DefaultClientIdentifier &&
((DefaultClientIdentifier) obj).UserAgentAddressAddress == UserAgentAddressAddress;
((DefaultClientIdentifier) obj).UserAgentAddress == UserAgentAddress;
}

public override int GetHashCode()
{
return UserAgentAddressAddress?.GetHashCode() ?? 0;
return UserAgentAddress?.GetHashCode() ?? 0;
}
}
}

0 comments on commit f2eb603

Please sign in to comment.