diff --git a/SparkleLib/Git/SparkleFetcherGit.cs b/SparkleLib/Git/SparkleFetcherGit.cs index d5982fb0..b7300e68 100755 --- a/SparkleLib/Git/SparkleFetcherGit.cs +++ b/SparkleLib/Git/SparkleFetcherGit.cs @@ -172,7 +172,7 @@ namespace SparkleLib.Git { } } - } catch (Exception e) { + } catch (Exception) { IsActive = false; return false; } diff --git a/SparkleShare/Mac/SparkleSetup.cs b/SparkleShare/Mac/SparkleSetup.cs index 65de0a98..ff67ec7e 100755 --- a/SparkleShare/Mac/SparkleSetup.cs +++ b/SparkleShare/Mac/SparkleSetup.cs @@ -812,24 +812,20 @@ namespace SparkleShare { } } else { - var plugin = (SparklePlugin)Items [row_index]; - var path = plugin.ImagePath; + SparklePlugin plugin = (SparklePlugin) Items [row_index]; + string path = plugin.ImagePath; if (backing_scale_factor >= 2) { - var hi_path = String.Format ("{0}@{1}x{2}", + string hi_path = String.Format ("{0}@{1}x{2}", Path.Combine (Path.GetDirectoryName (path), Path.GetFileNameWithoutExtension (path)), - backing_scale_factor, - Path.GetExtension (path) + backing_scale_factor, Path.GetExtension (path) ); - if (File.Exists (hi_path)) { + if (File.Exists (hi_path)) path = hi_path; - } } - return new NSImage (path) { - Size = new SizeF (24, 24) - }; + return new NSImage (path) { Size = new SizeF (24, 24) }; } } }