Skip to content

Commit

Permalink
Remove redundant variable introduction
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Jacobs committed Jan 28, 2015
1 parent 1b1593b commit 010a0b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -944,8 +944,7 @@ public TestRequestCollapser(TestCollapserTimer timer, String value, int defaultM

private static HystrixCollapserMetrics createMetrics() {
HystrixCollapserKey key = HystrixCollapserKey.Factory.asKey("COLLAPSER_ONE");
HystrixCollapserMetrics metrics = HystrixCollapserMetrics.getInstance(key, new HystrixPropertiesCollapserDefault(key, HystrixCollapserProperties.Setter()));
return metrics;
return HystrixCollapserMetrics.getInstance(key, new HystrixPropertiesCollapserDefault(key, HystrixCollapserProperties.Setter()));
}

public TestRequestCollapser(Scope scope, TestCollapserTimer timer, String value, int defaultMaxRequestsInBatch, int defaultTimerDelayInMilliseconds, ConcurrentLinkedQueue<HystrixCommand<List<String>>> executionLog) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,7 @@ public void testSampleDataOverTime2() {
}

public PercentileSnapshot getPercentileForValues(int... values) {
PercentileSnapshot p = new PercentileSnapshot(values);
return p;
return new PercentileSnapshot(values);
}

@Test
Expand Down

0 comments on commit 010a0b0

Please sign in to comment.