You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/07/31 23:31:25 UTC
[31/50] meck commit: updated refs/heads/master to dde7590
Fix compilation warning
Project: http://git-wip-us.apache.org/repos/asf/couchdb-meck/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-meck/commit/e8594772
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-meck/tree/e8594772
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-meck/diff/e8594772
Branch: refs/heads/master
Commit: e859477299b478313e423052183ad2aeedbffdc9
Parents: a1e0519
Author: Adam Lindberg <he...@alind.io>
Authored: Fri Mar 14 15:10:15 2014 +0100
Committer: Adam Lindberg <he...@alind.io>
Committed: Fri Mar 14 15:10:15 2014 +0100
----------------------------------------------------------------------
src/meck_proc.erl | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-meck/blob/e8594772/src/meck_proc.erl
----------------------------------------------------------------------
diff --git a/src/meck_proc.erl b/src/meck_proc.erl
index e1e313c..f21772c 100644
--- a/src/meck_proc.erl
+++ b/src/meck_proc.erl
@@ -365,11 +365,12 @@ backup_original(Mod, NoPassCover) ->
%% so that it can be passed to Cover later. There is no way
%% to use the code server to access this binary without first
%% saving it to disk. Instead, it's passed around as state.
- if (Cover == false) orelse NoPassCover ->
- Binary2 = no_passthrough_cover;
- true ->
- Binary2 = Binary,
- meck_cover:compile_beam(NewName, Binary2)
+ Binary2 = if
+ (Cover == false) orelse NoPassCover ->
+ no_passthrough_cover;
+ true ->
+ meck_cover:compile_beam(NewName, Binary),
+ Binary
end,
{Cover, Binary2}
catch