Browse Source

Fix "can never match the type"

It's either removing code that'll never run or adding rc to the guards :)
Paulo F. Oliveira 7 years ago
parent
commit
cb3cb9e43b
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/gproc.erl

+ 1 - 2
src/gproc.erl

@@ -1597,8 +1597,7 @@ get_value1({T,_,_} = K, shared) when T==c; T==a; T==p; T==r ->
 	      c  -> {K, shared};
 	      p  -> {K, shared};
               r  -> {K, shared};
-	      a  -> {K, a};
-              rc -> {K, rc}
+	      a  -> {K, a}
 	  end,
     case ets:lookup(?TAB, Key) of
 	[{_, shared, Value}] -> Value;