Browse Source

Use nameof

pull/627/head
Jason Nelson 8 years ago
parent
commit
68558d3535
  1. 2
      src/ImageSharp/Formats/Gif/GifDecoder.cs
  2. 2
      src/ImageSharp/Formats/Jpeg/JpegDecoder.cs

2
src/ImageSharp/Formats/Gif/GifDecoder.cs

@ -38,7 +38,7 @@ namespace SixLabors.ImageSharp.Formats.Gif
/// <inheritdoc/>
public IImageInfo Identify(Configuration configuration, Stream stream)
{
Guard.NotNull(stream, "stream");
Guard.NotNull(stream, nameof(stream));
var decoder = new GifDecoderCore(configuration, this);
return decoder.Identify(stream);

2
src/ImageSharp/Formats/Jpeg/JpegDecoder.cs

@ -33,7 +33,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg
/// <inheritdoc/>
public IImageInfo Identify(Configuration configuration, Stream stream)
{
Guard.NotNull(stream, "stream");
Guard.NotNull(stream, nameof(stream));
using (var decoder = new PdfJsJpegDecoderCore(configuration, this))
{

Loading…
Cancel
Save