Commits

Kevin Smith  committed 22f4d6f

Changing inputs again

  • Participants
  • Parent commits 6e9343c

Comments (0)

Files changed (1)

File apps/riak/src/riak_mapred_json.erl

         true ->
             error
     end;
-parse_targets([{struct, [{Bucket, Keys}]}|T], Accum) when is_binary(Bucket),
-                                                          is_list(Keys) ->
-    parse_targets(T, [{Bucket, Keys}|Accum]);
-parse_targets([{struct, [{Bucket, Key}]}|T], Accum) when is_binary(Bucket),
-                                                         is_binary(Key) ->
+parse_targets([[Bucket, Key]|T], Accum) when is_binary(Bucket),
+                                             is_binary(Key) ->
     parse_targets(T, [{Bucket, Key}|Accum]);
+parse_targets([[Bucket, Key, KeyData]|T], Accum) when is_binary(Bucket),
+                                                      is_binary(Key) ->
+    parse_targets(T, [{Bucket, Key, KeyData}|Accum]);
 parse_targets(_, _Accum) ->
     error.