]> granicus.if.org Git - ejabberd/commitdiff
Fix illegal match on previous commit
authorChristophe Romain <christophe.romain@process-one.net>
Tue, 10 Apr 2018 13:02:03 +0000 (15:02 +0200)
committerChristophe Romain <christophe.romain@process-one.net>
Tue, 10 Apr 2018 13:02:03 +0000 (15:02 +0200)
src/mod_pubsub.erl

index 9a26dc14c8c3baa367011369b0cb26fea2d95502..7b87d8d2497287261e0bf5e090c3d3fd2e1e0ce0 100644 (file)
@@ -2004,10 +2004,11 @@ get_items(Host, Node, From, SubId, _MaxItems, ItemIds, RSM) ->
                                     Host, From, Owners, AccessModel, AllowedGroups),
                        case ItemIds of
                            [ItemId] ->
+                               NotFound = xmpp:err_item_not_found(),
                                case node_call(Host, Type, get_item,
                                               [Nidx, ItemId, From, AccessModel, PS, RG, undefined])
                                of
-                                   {error, xmpp:err_item_not_found()} -> {result, {[], undefined}};
+                                   {error, NotFound} -> {result, {[], undefined}};
                                    Result -> Result
                                end;
                            _ ->