diff options
author | Chad Tolkien <chad@tolkien.id.au> | 2017-12-01 08:35:43 +1100 |
---|---|---|
committer | Chad Tolkien <chad@tolkien.id.au> | 2017-12-01 08:35:43 +1100 |
commit | 52994b02b9aab46319d115c50031e63ec220858a (patch) | |
tree | 1b570fa0e1a31306dc2c281d13cdf1470b8c819b | |
parent | 1afd4ce2032c70aa4ba7526dd0cec0250b37dab9 (diff) | |
download | TinyPNG-origin/cleanup.zip TinyPNG-origin/cleanup.tar.gz TinyPNG-origin/cleanup.tar.bz2 |
Fixes #23 - was missing 'this' prefix for extension methodv3.2.0origin/cleanup
-rw-r--r-- | src/TinyPNG/Extensions/ImageDataExtensions.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/TinyPNG/Extensions/ImageDataExtensions.cs b/src/TinyPNG/Extensions/ImageDataExtensions.cs index c2f3334..28aedef 100644 --- a/src/TinyPNG/Extensions/ImageDataExtensions.cs +++ b/src/TinyPNG/Extensions/ImageDataExtensions.cs @@ -66,7 +66,7 @@ namespace TinyPng /// <param name="result">The result from compress</param>
/// <param name="filePath">The path to store the file</param>
/// <returns></returns>
- public async static Task SaveImageToDisk(TinyPngImageResponse result, string filePath)
+ public async static Task SaveImageToDisk(this TinyPngImageResponse result, string filePath)
{
var byteData = await result.GetImageByteData();
File.WriteAllBytes(filePath, byteData);
|