mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Fix warnings.
This commit is contained in:
@@ -94,7 +94,7 @@ namespace Marechai.Areas.Admin.Controllers
|
|||||||
XmlDocument xml = new XmlDocument();
|
XmlDocument xml = new XmlDocument();
|
||||||
xml.LoadXml(svgStr);
|
xml.LoadXml(svgStr);
|
||||||
}
|
}
|
||||||
catch(XmlException e)
|
catch(XmlException)
|
||||||
{
|
{
|
||||||
companyLogo.SvgLogo = null;
|
companyLogo.SvgLogo = null;
|
||||||
companyLogo.ErrorMessage = "Not a valid SVG file.";
|
companyLogo.ErrorMessage = "Not a valid SVG file.";
|
||||||
@@ -150,7 +150,7 @@ namespace Marechai.Areas.Admin.Controllers
|
|||||||
foreach(int multiplier in new[] {1, 2, 3})
|
foreach(int multiplier in new[] {1, 2, 3})
|
||||||
{
|
{
|
||||||
if(!Directory.Exists(Path.Combine(hostingEnvironment.WebRootPath, "assets/logos", format,
|
if(!Directory.Exists(Path.Combine(hostingEnvironment.WebRootPath, "assets/logos", format,
|
||||||
$"{multiplier}x"))) ;
|
$"{multiplier}x")))
|
||||||
Directory.CreateDirectory(Path.Combine(hostingEnvironment.WebRootPath, "assets/logos",
|
Directory.CreateDirectory(Path.Combine(hostingEnvironment.WebRootPath, "assets/logos",
|
||||||
format, $"{multiplier}x"));
|
format, $"{multiplier}x"));
|
||||||
|
|
||||||
@@ -196,7 +196,7 @@ namespace Marechai.Areas.Admin.Controllers
|
|||||||
foreach(string format in new[] {"png", "webp"})
|
foreach(string format in new[] {"png", "webp"})
|
||||||
{
|
{
|
||||||
if(!Directory.Exists(Path.Combine(hostingEnvironment.WebRootPath, "assets/logos/thumbs",
|
if(!Directory.Exists(Path.Combine(hostingEnvironment.WebRootPath, "assets/logos/thumbs",
|
||||||
format))) ;
|
format)))
|
||||||
Directory.CreateDirectory(Path.Combine(hostingEnvironment.WebRootPath, "assets/logos/thumbs",
|
Directory.CreateDirectory(Path.Combine(hostingEnvironment.WebRootPath, "assets/logos/thumbs",
|
||||||
format));
|
format));
|
||||||
|
|
||||||
@@ -214,7 +214,7 @@ namespace Marechai.Areas.Admin.Controllers
|
|||||||
foreach(int multiplier in new[] {1, 2, 3})
|
foreach(int multiplier in new[] {1, 2, 3})
|
||||||
{
|
{
|
||||||
if(!Directory.Exists(Path.Combine(hostingEnvironment.WebRootPath, "assets/logos/thumbs",
|
if(!Directory.Exists(Path.Combine(hostingEnvironment.WebRootPath, "assets/logos/thumbs",
|
||||||
format, $"{multiplier}x"))) ;
|
format, $"{multiplier}x")))
|
||||||
Directory.CreateDirectory(Path.Combine(hostingEnvironment.WebRootPath,
|
Directory.CreateDirectory(Path.Combine(hostingEnvironment.WebRootPath,
|
||||||
"assets/logos/thumbs", format, $"{multiplier}x"));
|
"assets/logos/thumbs", format, $"{multiplier}x"));
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ namespace Marechai.Helpers
|
|||||||
|
|
||||||
foreach(string format in new[] {"png", "webp"})
|
foreach(string format in new[] {"png", "webp"})
|
||||||
{
|
{
|
||||||
if(!Directory.Exists(Path.Combine("wwwroot/assets/flags/countries", format))) ;
|
if(!Directory.Exists(Path.Combine("wwwroot/assets/flags/countries", format)))
|
||||||
Directory.CreateDirectory(Path.Combine("wwwroot/assets/flags/countries", format));
|
Directory.CreateDirectory(Path.Combine("wwwroot/assets/flags/countries", format));
|
||||||
|
|
||||||
SKEncodedImageFormat skFormat;
|
SKEncodedImageFormat skFormat;
|
||||||
@@ -68,7 +68,7 @@ namespace Marechai.Helpers
|
|||||||
foreach(int multiplier in new[] {1, 2, 3})
|
foreach(int multiplier in new[] {1, 2, 3})
|
||||||
{
|
{
|
||||||
if(!Directory.Exists(Path.Combine("wwwroot/assets/flags/countries", format, $"{multiplier}x"))
|
if(!Directory.Exists(Path.Combine("wwwroot/assets/flags/countries", format, $"{multiplier}x"))
|
||||||
) ;
|
)
|
||||||
Directory.CreateDirectory(Path.Combine("wwwroot/assets/flags/countries", format,
|
Directory.CreateDirectory(Path.Combine("wwwroot/assets/flags/countries", format,
|
||||||
$"{multiplier}x"));
|
$"{multiplier}x"));
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netcoreapp2.2</TargetFramework>
|
<TargetFramework>netcoreapp2.2</TargetFramework>
|
||||||
<Version>3.0.99.889</Version>
|
<Version>3.0.99.891</Version>
|
||||||
<Company>Canary Islands Computer Museum</Company>
|
<Company>Canary Islands Computer Museum</Company>
|
||||||
<Copyright>Copyright © 2003-2020 Natalia Portillo</Copyright>
|
<Copyright>Copyright © 2003-2020 Natalia Portillo</Copyright>
|
||||||
<Product>Canary Islands Computer Museum Website</Product>
|
<Product>Canary Islands Computer Museum Website</Product>
|
||||||
|
|||||||
Reference in New Issue
Block a user