Skip to content

Commit

Permalink
Coalesce the two conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
kolinkrewinkel committed Oct 28, 2015
1 parent 9f8b5e1 commit caca929
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,7 @@ - (NSColor *)ply_colorForSwiftCodeRange:(NSRange)range context:(id)context fallb
- (NSColor *)ply_colorForObjCCodeRange:(NSRange)range context:(id)context fallbackColor:(NSColor *)fallbackColor
{
DVTSourceModelItem *item = [self.sourceModelService sourceModelItemAtCharacterIndex:range.location];
if (item.needsAdjustNodeType) {
return fallbackColor;
}

if (![item ply_isIdentifier]) {
if (item.needsAdjustNodeType || ![item ply_isIdentifier]) {
return fallbackColor;
}

Expand Down

0 comments on commit caca929

Please sign in to comment.