Skip to content

Commit

Permalink
fix(zita)#: Return generic T of IZitaFilter for type clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueCyro committed Sep 12, 2024
1 parent 9145806 commit fce1276
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SharpPipe/Helpers/ParameterHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ public static class ParameterHelper
/// </summary>
/// <param name="zita">This Zita filter</param>
/// <param name="other">The Zita filter to copy parameters from</param>
public static IZitaFilter FromOther(this IZitaFilter zita, in IZitaFilter other)
public static T FromOther<T>(this T zita, in IZitaFilter other)
where T : IZitaFilter
{
zita.InDelay = other.InDelay;
zita.Crossover = other.Crossover;
Expand Down

0 comments on commit fce1276

Please sign in to comment.