Skip to content

Commit

Permalink
Clean up return logic
Browse files Browse the repository at this point in the history
  • Loading branch information
echrist committed Oct 29, 2013
1 parent c78b617 commit c1b3995
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/org/mongeez/commands/ChangeSet.java
Expand Up @@ -113,10 +113,6 @@ public boolean canBeAppliedInContext(String context) {
}
}
}

if (contexts.size() > 0 && (context == null || !contexts.contains(context.toLowerCase().trim()))) {
return false;
}
return true;
return contexts.isEmpty() || (context != null && contexts.contains(context.toLowerCase().trim()));
}
}

0 comments on commit c1b3995

Please sign in to comment.