Skip to content

Commit

Permalink
Fix CA2254 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveDesmond-ca committed Nov 30, 2021
1 parent 8b21d79 commit 3ea2237
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion SrcSet.Core/SrcSet.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>4.0.0</Version>
<Version>4.1.0</Version>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>latest</LangVersion>
<PackageId>SrcSet.Core</PackageId>
Expand Down
6 changes: 3 additions & 3 deletions SrcSet.Statiq/CreateResponsiveImages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ protected override async Task<IEnumerable<IDocument>> ExecuteInputAsync(IDocumen
var alreadyDone = cached.Count == destinations.Count;
if (alreadyDone)
{
context.Log(LogLevel.Debug, $"Skipping {input.Source} since all sizes already exist");
context.Log(LogLevel.Debug, "Skipping {source} since all sizes already exist", input.Source);
var docs = cached.Select(f => CachedDocument(input.Source, f.Path, f, context));
return await Task.WhenAll(docs);
}
Expand All @@ -41,14 +41,14 @@ private static async Task<IDocument> GetResizedDocument(NormalizedPath source, I
var cached = context.FileSystem.GetOutputFile(destination);
if (cached.Exists)
{
context.Log(LogLevel.Debug, $"Skipping {destination} since it already exists");
context.Log(LogLevel.Debug, "Skipping {destination} since it already exists", destination);
return await CachedDocument(source, destination, cached, context);
}

var encoder = image.DetectEncoder(destination.ToString());
var output = new MemoryStream();

context.Log(LogLevel.Debug, $"Resizing {source} to {destination}...");
context.Log(LogLevel.Debug, "Resizing {source} to {destination}...", source, destination);
var newSize = image.Size().Resize(width);
using var resized = image.Resize(newSize);
await resized.SaveAsync(output, encoder);
Expand Down
2 changes: 1 addition & 1 deletion SrcSet.Statiq/SrcSet.Statiq.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Version>4.0.0</Version>
<Version>4.1.0</Version>
<PackageId>SrcSet.Statiq</PackageId>
<Description>Automate creating sets of responsive images for your Statiq site</Description>
<Authors>ecoAPM LLC</Authors>
Expand Down
2 changes: 1 addition & 1 deletion SrcSet/SrcSet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Version>4.0.0</Version>
<Version>4.1.0</Version>
<PackageId>SrcSet</PackageId>
<Description>A CLI to create sets of responsive images for the web</Description>
<Authors>ecoAPM LLC</Authors>
Expand Down

0 comments on commit 3ea2237

Please sign in to comment.