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:
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)
|
||||
{
|
||||
PacketExtension ext = PacketParserUtils.parsePacketExtension(parser.getName(), parser.getNamespace(), parser);
|
||||
|
||||
if (ext != null)
|
||||
{
|
||||
pubsub.addExtension(ext);
|
||||
}
|
||||
pubsub.addExtension(ext);
|
||||
}
|
||||
else if (eventType == XmlPullParser.END_TAG)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue