Permalink
Browse files

Clean up return logic

  • Loading branch information...
1 parent c78b617 commit c1b3995c951ffe3e6510ce77e5732db4c709bf29 echrist committed Oct 29, 2013
Showing with 1 addition and 5 deletions.
  1. +1 −5 src/main/java/org/mongeez/commands/ChangeSet.java
@@ -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.