From e4f642b9464dc8664ff8dfcaee04b7f952811b2b Mon Sep 17 00:00:00 2001 From: Wilfredo Rodriguez Date: Thu, 18 Oct 2018 17:02:46 -0400 Subject: Remove redundant bool variable and else before a return --- src/display/grayscale.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/display/grayscale.cpp') diff --git a/src/display/grayscale.cpp b/src/display/grayscale.cpp index 5978dbf2a..a8e3fb390 100644 --- a/src/display/grayscale.cpp +++ b/src/display/grayscale.cpp @@ -84,9 +84,9 @@ unsigned char luminance(unsigned char r, unsigned char g, unsigned char b) { bool activeDesktopIsGrayscale() { if (SP_ACTIVE_DESKTOP) { return (SP_ACTIVE_DESKTOP->getColorMode() == Inkscape::COLORMODE_GRAYSCALE); - } else { - return false; } + + return false; } -- cgit v1.2.3