Skip to content

Commit 4ded228

Browse files
committed
Applying contribution from Evgeniya Polyakova.
Thanks to Gustavo Rubinsky for a similar patch.
1 parent 6d9bae5 commit 4ded228

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CONTRIBUTORS.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Evgeniya Polyakova <epolyakova@knoema.com> : Fixed issue #2584
2+
Gustavo Rubinsky <grubinsky@yellowspot.com.ar> : Similar fix for issue #2584

DevTrends.MvcDonutCaching/DonutOutputCacheAttribute.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,10 @@ public override void OnActionExecuting(ActionExecutingContext filterContext)
100100

101101
public override void OnResultExecuted(ResultExecutedContext filterContext)
102102
{
103-
if(_cacheSettings == null)
104-
return;
103+
if (_cacheSettings == null)
104+
{
105+
return;
106+
}
105107

106108
ExecuteCallback(filterContext, false);
107109

0 commit comments

Comments
 (0)