diff --git a/src/main/java/in/ashwanthkumar/gocd/github/util/BranchFilter.java b/src/main/java/in/ashwanthkumar/gocd/github/util/BranchFilter.java index 516dd1f..daf8336 100644 --- a/src/main/java/in/ashwanthkumar/gocd/github/util/BranchFilter.java +++ b/src/main/java/in/ashwanthkumar/gocd/github/util/BranchFilter.java @@ -8,7 +8,7 @@ public class BranchFilter { public static final String NO_BRANCHES = ""; private final BranchMatcher blacklistedBranches; - private final BranchMatcher whitelistedBrandches; + private final BranchMatcher whitelistedBranches; public BranchFilter() { this(NO_BRANCHES, NO_BRANCHES); @@ -16,15 +16,15 @@ public BranchFilter() { public BranchFilter(String blacklistOption, String whitelistOption) { this.blacklistedBranches = new BranchMatcher(blacklistOption, BranchMatcher.Mode.FAIL_EMPTY); - this.whitelistedBrandches = new BranchMatcher(whitelistOption, BranchMatcher.Mode.PASS_EMPTY); + this.whitelistedBranches = new BranchMatcher(whitelistOption, BranchMatcher.Mode.PASS_EMPTY); } public boolean isBranchValid(String branch) { if (branch == null) { return false; - } else if (whitelistedBrandches.isEmpty() && blacklistedBranches.isEmpty()) { + } else if (whitelistedBranches.isEmpty() && blacklistedBranches.isEmpty()) { return true; - } else if (whitelistedBrandches.matches(branch) && !blacklistedBranches.matches(branch)) { + } else if (whitelistedBranches.matches(branch) && !blacklistedBranches.matches(branch)) { return true; } else { return false;