couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [31/50] meck commit: updated refs/heads/master to dde7590
Date Thu, 31 Jul 2014 21:31:25 GMT
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 <hello@alind.io>
Authored: Fri Mar 14 15:10:15 2014 +0100
Committer: Adam Lindberg <hello@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


Mime
View raw message