fixing indent, fix checkout page opacity

This commit is contained in:
nicolas.dorier
2017-10-27 17:37:15 +09:00
parent e7a931e9ba
commit 27a2e614a5
3 changed files with 73 additions and 73 deletions

View File

@@ -18,7 +18,7 @@ namespace BTCPayServer
{
public static string WithTrailingSlash(this string str)
{
if (str.EndsWith("/"))
if(str.EndsWith("/"))
return str;
return str + "/";
}
@@ -44,7 +44,7 @@ namespace BTCPayServer
public static BitIdentity GetBitIdentity(this Controller controller, bool throws = true)
{
if (!(controller.User.Identity is BitIdentity))
if(!(controller.User.Identity is BitIdentity))
return throws ? throw new UnauthorizedAccessException("no-bitid") : (BitIdentity)null;
return (BitIdentity)controller.User.Identity;
}