Skip to content

Commit

Permalink
Merge pull request #2 from saikrishna35/master
Browse files Browse the repository at this point in the history
Update Template.cs
  • Loading branch information
ozlemkzn authored Jun 10, 2024
2 parents b9d5651 + f72eace commit 71f9ebd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DotLiquid/Template.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public static void RegisterSafeType(Type type, string[] allowedMembers, Func<obj
/// <param name="func">Function that converts the specified type into a Liquid Drop-compatible object (eg, implements ILiquidizable)</param>
public static void RegisterSafeType(Type type, Func<object, object> func)
{
SafeTypeTransformers.GetOrAdd(type, func);
SafeTypeTransformers.AddOrUpdate(type, func, (k, oldFunction) => func);
}

/// <summary>
Expand All @@ -184,7 +184,7 @@ public static void RegisterSafeType(Type type, Func<object, object> func)
/// <param name="func">Function that converts the specified type into a Liquid Drop-compatible object (eg, implements ILiquidizable)</param>
public static void RegisterValueTypeTransformer(Type type, Func<object, object> func)
{
ValueTypeTransformers.GetOrAdd(type, func);
ValueTypeTransformers.AddOrUpdate(type, func, (k, oldFunction) => func);
ValueTypeTransformerCache.Clear();
}

Expand Down

0 comments on commit 71f9ebd

Please sign in to comment.