fix(style): Style fixes
This commit is contained in:
parent
f3d906e69b
commit
09b8613c80
@ -750,7 +750,9 @@ class XmppConnection {
|
||||
),
|
||||
);
|
||||
if (!incomingHandlers.done) {
|
||||
_log.warning('Returning error for unhandled stanza ${incomingPreHandlers.stanza.tag}');
|
||||
_log.warning(
|
||||
'Returning error for unhandled stanza ${incomingPreHandlers.stanza.tag}',
|
||||
);
|
||||
await handleUnhandledStanza(this, incomingPreHandlers);
|
||||
}
|
||||
}
|
||||
|
@ -71,9 +71,13 @@ class XMPPStreamParser extends StreamTransformerBase<String, XMPPStreamObject> {
|
||||
|
||||
/// The selectors.
|
||||
_ChunkedConversionBuffer<List<XmlEvent>, XmlEvent> _childSelector =
|
||||
_ChunkedConversionBuffer<List<XmlEvent>, XmlEvent>(XmlSubtreeSelector((event) => event.qualifiedName != 'stream:stream'));
|
||||
_ChunkedConversionBuffer<List<XmlEvent>, XmlEvent>(
|
||||
XmlSubtreeSelector((event) => event.qualifiedName != 'stream:stream'),
|
||||
);
|
||||
_ChunkedConversionBuffer<List<XmlEvent>, XmlEvent> _streamHeaderSelector =
|
||||
_ChunkedConversionBuffer<List<XmlEvent>, XmlEvent>(XmlSubtreeSelector((event) => event.qualifiedName == 'stream:stream'));
|
||||
_ChunkedConversionBuffer<List<XmlEvent>, XmlEvent>(
|
||||
XmlSubtreeSelector((event) => event.qualifiedName == 'stream:stream'),
|
||||
);
|
||||
|
||||
void reset() {
|
||||
try {
|
||||
@ -104,9 +108,12 @@ class XMPPStreamParser extends StreamTransformerBase<String, XMPPStreamObject> {
|
||||
_childBuffer = _ChunkedConversionBuffer<List<XmlEvent>, XmlNode>(
|
||||
const XmlNodeDecoder(),
|
||||
);
|
||||
_childSelector = _ChunkedConversionBuffer<List<XmlEvent>, XmlEvent>(XmlSubtreeSelector((event) => event.qualifiedName != 'stream:stream'));
|
||||
_streamHeaderSelector =
|
||||
_ChunkedConversionBuffer<List<XmlEvent>, XmlEvent>(XmlSubtreeSelector((event) => event.qualifiedName == 'stream:stream'));
|
||||
_childSelector = _ChunkedConversionBuffer<List<XmlEvent>, XmlEvent>(
|
||||
XmlSubtreeSelector((event) => event.qualifiedName != 'stream:stream'),
|
||||
);
|
||||
_streamHeaderSelector = _ChunkedConversionBuffer<List<XmlEvent>, XmlEvent>(
|
||||
XmlSubtreeSelector((event) => event.qualifiedName == 'stream:stream'),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
|
Loading…
Reference in New Issue
Block a user