Skip to content

Commit

Permalink
Small updates based on feedback
Browse files Browse the repository at this point in the history
Just some cosmetic changes here - nothing too special.
  • Loading branch information
devonestes committed Sep 1, 2017
1 parent 7a5a087 commit 42f9fc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions lib/benchee/formatter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ defmodule Benchee.Formatter do
@spec parallel_output(Suite.t, [module]) :: Suite.t
def parallel_output(suite, modules) do
modules
|> Parallel.map(fn(module) ->
{module, module.format(suite)}
end)
|> Parallel.map(fn(module) -> {module, module.format(suite)} end)
|> Enum.each(fn({module, output}) -> module.write(output) end)

suite
Expand Down
6 changes: 3 additions & 3 deletions lib/benchee/formatters/console.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ defmodule Benchee.Formatters.Console do
"""
@spec output(Suite.t) :: Suite.t
def output(suite = %Suite{}) do
_ = suite
|> format
|> write
:ok = suite
|> format
|> write

suite
end
Expand Down

0 comments on commit 42f9fc0

Please sign in to comment.