We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11a1044 commit 36c9ea5Copy full SHA for 36c9ea5
pkgs/yaml/lib/src/scanner.dart
@@ -937,11 +937,9 @@ class Scanner {
937
/// Both tag uri and local tags can be used as prefixes.
938
///
939
/// See: https://yaml.org/spec/1.2.2/#6822-tag-prefixes
940
- var prefix = _scanner.peekChar() == EXCLAMATION
+ final prefix = _scanner.peekChar() == EXCLAMATION
941
? _scanTagHandle(directive: true, isGlobalTagPrefix: true).tagHandle
942
- : '';
943
-
944
- prefix += _scanTagUri(); // Readability's sake
+ : _scanTagUri();
945
946
if (prefix.isEmpty) {
947
throw YamlException(
0 commit comments