Repository: couchdb-couch-epi Updated Branches: refs/heads/master 807aa3f58 -> de32c6554
Fix a warning for a variable shadowed in the tests Just a nitpick, but there are a couple of the variables shadowed in the list comprehensions in the tests. It doesn't compromise the tests, but raises a warning during the tests' build. Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/commit/de32c655 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/tree/de32c655 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/diff/de32c655 Branch: refs/heads/master Commit: de32c655443d75d58cd36cef2bd6b4c67b6a91b6 Parents: 807aa3f Author: Eric Avdey <e...@eiri.ca> Authored: Tue Jan 12 10:07:12 2016 -0400 Committer: Eric Avdey <e...@eiri.ca> Committed: Tue Jan 12 10:07:12 2016 -0400 ---------------------------------------------------------------------- src/couch_epi_plugin.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/blob/de32c655/src/couch_epi_plugin.erl ---------------------------------------------------------------------- diff --git a/src/couch_epi_plugin.erl b/src/couch_epi_plugin.erl index 0d76465..133a0d2 100644 --- a/src/couch_epi_plugin.erl +++ b/src/couch_epi_plugin.erl @@ -240,8 +240,8 @@ provider_modules_order_test() -> ], Defs = definitions(providers, bar_handlers), - Result = [{App, V} || {App, #couch_epi_spec{value = V}} <- Defs], - Tests = lists:zip(Expected, Result), + Results = [{App, V} || {App, #couch_epi_spec{value = V}} <- Defs], + Tests = lists:zip(Expected, Results), [?assertEqual(Expect, Result) || {Expect, Result} <- Tests], ok. @@ -254,8 +254,8 @@ providers_order_test() -> ], AllDefs = grouped_definitions([foo_epi, bar_epi]), {_, Defs} = lists:keyfind({providers, bar_handlers}, 1, AllDefs), - Result = [{App, V} || {App, #couch_epi_spec{value = V}} <- Defs], - Tests = lists:zip(Expected, Result), + Results = [{App, V} || {App, #couch_epi_spec{value = V}} <- Defs], + Tests = lists:zip(Expected, Results), [?assertEqual(Expect, Result) || {Expect, Result} <- Tests], ok.