diff --git a/Pod/Classes/Objective-C/NSArray+Chameleon.m b/Pod/Classes/Objective-C/NSArray+Chameleon.m index ba4e46a..17faa6d 100755 --- a/Pod/Classes/Objective-C/NSArray+Chameleon.m +++ b/Pod/Classes/Objective-C/NSArray+Chameleon.m @@ -59,14 +59,11 @@ + (NSArray *)arrayOfColorsWithColorScheme:(ColorScheme)colorScheme with:(UIColor //Choose Between Schemes switch (colorScheme) { case ColorSchemeAnalogous: - if (isFlatScheme) return [self analogousColorSchemeFromHue:h Saturation:s Brightness:b flat:YES]; - else return [self analogousColorSchemeFromHue:h Saturation:s Brightness:b flat:NO]; + return [self analogousColorSchemeFromHue:h Saturation:s Brightness:b flat:isFlatScheme]; case ColorSchemeComplementary: - if (isFlatScheme) return [self complementaryColorSchemeFromHue:h Saturation:s Brightness:b flat:YES]; - else return [self complementaryColorSchemeFromHue:h Saturation:s Brightness:b flat:NO]; + return [self complementaryColorSchemeFromHue:h Saturation:s Brightness:b flat:isFlatScheme]; case ColorSchemeTriadic: - if (isFlatScheme) return [self triadicColorSchemeFromHue:h Saturation:s Brightness:b flat:YES]; - else return [self triadicColorSchemeFromHue:h Saturation:s Brightness:b flat:NO]; + return [self triadicColorSchemeFromHue:h Saturation:s Brightness:b flat:isFlatScheme]; default: NSAssert(0, @"Oops! Unrecognized color scheme provided as random color."); }