mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-02-16 22:56:32 +01:00
Remove unnecessary check for non-null in PubSubProvider
addExtension() does that already.
This commit is contained in:
parent
2dc93d7639
commit
f0651bae2d
1 changed files with 1 additions and 5 deletions
|
@ -46,11 +46,7 @@ public class PubSubProvider implements IQProvider
|
||||||
if (eventType == XmlPullParser.START_TAG)
|
if (eventType == XmlPullParser.START_TAG)
|
||||||
{
|
{
|
||||||
PacketExtension ext = PacketParserUtils.parsePacketExtension(parser.getName(), parser.getNamespace(), parser);
|
PacketExtension ext = PacketParserUtils.parsePacketExtension(parser.getName(), parser.getNamespace(), parser);
|
||||||
|
pubsub.addExtension(ext);
|
||||||
if (ext != null)
|
|
||||||
{
|
|
||||||
pubsub.addExtension(ext);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (eventType == XmlPullParser.END_TAG)
|
else if (eventType == XmlPullParser.END_TAG)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue