Skip to content

Commit

Permalink
fix bug checking if in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
donnyv committed Aug 19, 2014
1 parent 4435790 commit 4c7986e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Nancy.BundleIt/ConfigSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

using Yahoo.Yui.Compressor;

using Nancy;

namespace Nancy.BundleIt
{
public sealed class ConfigSettings
Expand Down Expand Up @@ -250,18 +252,13 @@ public static T Clone<T>(T source)

internal bool IsDebugMode()
{

if (_instance.ForceDebugMode)
return true;

if (_instance.ForceReleaseMode)
return false;

#if DEBUG
return true;
#else
return false;
#endif
return StaticConfiguration.IsRunningDebug;
}
}
}

0 comments on commit 4c7986e

Please sign in to comment.