1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 14:22:05 +01:00

Remove unnecessary check for non-null in PubSubProvider

addExtension() does that already.
This commit is contained in:
Florian Schmaus 2014-09-13 12:29:16 +02:00
parent 2dc93d7639
commit f0651bae2d

View file

@ -46,11 +46,7 @@ public class PubSubProvider implements IQProvider
if (eventType == XmlPullParser.START_TAG)
{
PacketExtension ext = PacketParserUtils.parsePacketExtension(parser.getName(), parser.getNamespace(), parser);
if (ext != null)
{
pubsub.addExtension(ext);
}
pubsub.addExtension(ext);
}
else if (eventType == XmlPullParser.END_TAG)
{