diff --git a/Marechai/Areas/Admin/Controllers/CompanyLogosController.cs b/Marechai/Areas/Admin/Controllers/CompanyLogosController.cs index 8e04fa45..a2c51669 100644 --- a/Marechai/Areas/Admin/Controllers/CompanyLogosController.cs +++ b/Marechai/Areas/Admin/Controllers/CompanyLogosController.cs @@ -65,7 +65,7 @@ namespace Marechai.Areas.Admin.Controllers } // POST: CompanyLogos/Create - // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // To protect from overposting attacks, please enable the specific properties you want to bind to, for // more details see http://go.microsoft.com/fwlink/?LinkId=317598. // TODO: Upload [HttpPost] @@ -94,7 +94,7 @@ namespace Marechai.Areas.Admin.Controllers XmlDocument xml = new XmlDocument(); xml.LoadXml(svgStr); } - catch(XmlException e) + catch(XmlException) { companyLogo.SvgLogo = null; companyLogo.ErrorMessage = "Not a valid SVG file."; @@ -150,7 +150,7 @@ namespace Marechai.Areas.Admin.Controllers foreach(int multiplier in new[] {1, 2, 3}) { if(!Directory.Exists(Path.Combine(hostingEnvironment.WebRootPath, "assets/logos", format, - $"{multiplier}x"))) ; + $"{multiplier}x"))) Directory.CreateDirectory(Path.Combine(hostingEnvironment.WebRootPath, "assets/logos", format, $"{multiplier}x")); @@ -196,7 +196,7 @@ namespace Marechai.Areas.Admin.Controllers foreach(string format in new[] {"png", "webp"}) { if(!Directory.Exists(Path.Combine(hostingEnvironment.WebRootPath, "assets/logos/thumbs", - format))) ; + format))) Directory.CreateDirectory(Path.Combine(hostingEnvironment.WebRootPath, "assets/logos/thumbs", format)); @@ -214,7 +214,7 @@ namespace Marechai.Areas.Admin.Controllers foreach(int multiplier in new[] {1, 2, 3}) { if(!Directory.Exists(Path.Combine(hostingEnvironment.WebRootPath, "assets/logos/thumbs", - format, $"{multiplier}x"))) ; + format, $"{multiplier}x"))) Directory.CreateDirectory(Path.Combine(hostingEnvironment.WebRootPath, "assets/logos/thumbs", format, $"{multiplier}x")); @@ -286,7 +286,7 @@ namespace Marechai.Areas.Admin.Controllers } // POST: CompanyLogos/Edit/5 - // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // To protect from overposting attacks, please enable the specific properties you want to bind to, for // more details see http://go.microsoft.com/fwlink/?LinkId=317598. [HttpPost] [ValidateAntiForgeryToken] diff --git a/Marechai/Helpers/SvgRender.cs b/Marechai/Helpers/SvgRender.cs index 66932703..837eb4dc 100644 --- a/Marechai/Helpers/SvgRender.cs +++ b/Marechai/Helpers/SvgRender.cs @@ -51,7 +51,7 @@ namespace Marechai.Helpers 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)); SKEncodedImageFormat skFormat; @@ -68,7 +68,7 @@ namespace Marechai.Helpers foreach(int multiplier in new[] {1, 2, 3}) { if(!Directory.Exists(Path.Combine("wwwroot/assets/flags/countries", format, $"{multiplier}x")) - ) ; + ) Directory.CreateDirectory(Path.Combine("wwwroot/assets/flags/countries", format, $"{multiplier}x")); diff --git a/Marechai/Marechai.csproj b/Marechai/Marechai.csproj index ee169097..a3ede154 100644 --- a/Marechai/Marechai.csproj +++ b/Marechai/Marechai.csproj @@ -2,7 +2,7 @@ netcoreapp2.2 - 3.0.99.889 + 3.0.99.891 Canary Islands Computer Museum Copyright © 2003-2020 Natalia Portillo Canary Islands Computer Museum Website