Skip to content

Commit

Permalink
Removed compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rradz committed Jun 23, 2016
1 parent 66721c2 commit e0612cb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/exredis/api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ defmodule Exredis.Api do
import Exredis.Api.Helper

def defaultclient do
pid = Process.whereis(:exredis_hapi_default_client)
if !pid do
{:ok, pid} = Exredis.start_link
Process.register pid, :exredis_hapi_default_client
case Process.whereis(:exredis_hapi_default_client) do
nil ->
{:ok, pid} = Exredis.start_link
Process.register(pid, :exredis_hapi_default_client)
pid
pid -> pid
end
pid
end

defredis :append, [:key, :value], &int_reply/1
Expand Down

0 comments on commit e0612cb

Please sign in to comment.