Skip to content

Commit

Permalink
Infrastructure Preparation 160
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiizor committed Jun 1, 2023
1 parent a702173 commit f074b53
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 14 deletions.
6 changes: 3 additions & 3 deletions src/Skylark.DNS/Extension/Domain/DomainExtension.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using DCIDQR = DnsClient.IDnsQueryResponse;
using DCLC = DnsClient.LookupClient;
using DCPDRR = DnsClient.Protocol.DnsResourceRecord;
using SE = Skylark.Exception;
using SEQDT = Skylark.Enum.QueryDomainType;
using SDNSHC = Skylark.DNS.Helper.Converter;
using SHL = Skylark.Helper.Length;
using SDNSMDDM = Skylark.DNS.Manage.Domain.DomainManage;
using SDNSME = Skylark.DNS.Manage.External;
using SE = Skylark.Exception;
using SEQDT = Skylark.Enum.QueryDomainType;
using SHL = Skylark.Helper.Length;
using SNIPA = System.Net.IPAddress;
using SNIPEP = System.Net.IPEndPoint;

Expand Down
2 changes: 1 addition & 1 deletion src/Skylark.DNS/Helper/Converter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using DCQT = DnsClient.QueryType;
using SEQDT = Skylark.Enum.QueryDomainType;
using SDNSMDDM = Skylark.DNS.Manage.Domain.DomainManage;
using SEQDT = Skylark.Enum.QueryDomainType;

namespace Skylark.DNS.Helper
{
Expand Down
4 changes: 1 addition & 3 deletions src/Skylark.Standard/Extension/Browser/BrowserExtension.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using NUglify;
using NUglify.Css;
using WebMarkupMin.Core;
using WebMarkupMin.Core;
using E = Skylark.Exception;
using HL = Skylark.Helper.Length;
using MBBM = Skylark.Standard.Manage.Browser.BrowserManage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static class TemperatureExtension
/// <summary>
///
/// </summary>
public static async Task<string> SymbolKelvinAsync()
public static async Task<string> SymbolKelvinAsync()
{
return await Task.FromResult(SymbolKelvin);
}
Expand Down
6 changes: 3 additions & 3 deletions src/Skylark.Standard/Helper/Password/PasswordHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,14 @@ public static double GetSimilarity(string Password1, string Password2, ESRPT Sim

if (P1 == 0)
{
Similarity = 1 - (double)P2 / Math.Max(Password1.Length, Password2.Length);
Similarity = 1 - ((double)P2 / Math.Max(Password1.Length, Password2.Length));

return Similarity;
}

if (P2 == 0)
{
Similarity = 1 - (double)P1 / Math.Max(Password1.Length, Password2.Length);
Similarity = 1 - ((double)P1 / Math.Max(Password1.Length, Password2.Length));

return Similarity;
}
Expand All @@ -187,7 +187,7 @@ public static double GetSimilarity(string Password1, string Password2, ESRPT Sim

int Distance = D[P1, P2];

Similarity = 1 - (double)Distance / Math.Max(Password1.Length, Password2.Length);
Similarity = 1 - ((double)Distance / Math.Max(Password1.Length, Password2.Length));

return Similarity;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Skylark/Helper/Skymath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ public static TOut Average<TIn, TSum, TOut>(IEnumerable<TIn> Elements, TSum Zero
/// <returns>Point A with a weight towards B</returns>
public static double Lerp(double A, double B, double Weight)
{
return A * (1d - Weight) + B * Weight;
return (A * (1d - Weight)) + (B * Weight);
}

/// <summary>
/// <inheritdoc cref="Lerp(double,double,double)"/>
/// </summary>
Expand All @@ -79,7 +79,7 @@ public static double Lerp(double A, double B, double Weight)
/// <returns>Point A with a weight towards B</returns>
public static double Lerp(float A, float B, float Weight)
{
return A * (1f - Weight) + B * Weight;
return (A * (1f - Weight)) + (B * Weight);
}
}
}

0 comments on commit f074b53

Please sign in to comment.