Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add a local var
  • Loading branch information
tugorez committed Feb 26, 2021
commit 3a32e2f339a88df4d0c3dbf3593f30e65f6ad24e
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ class XTypeGroup {

void _verifyExtensions() {
if (extensions == null) return;
Comment thread
tugorez marked this conversation as resolved.
Outdated
for (var i = 0; i < extensions!.length; i++) {
if (!extensions![i].startsWith('.')) continue;
final exts = extensions!;
for (var i = 0; i < exts.length; i++) {
if (!exts[i].startsWith('.')) continue;
if (kDebugMode) {
print('extensions[${i}] with value "${extensions![i]}" is invalid.'
' We are mutating the extensions list to remove the leading dot.'
print('extensions[${i}] with value "${exts[i]}" is invalid.'
' The leading dots are being removed from the extensions'
' Please fix it.');
Comment thread
tugorez marked this conversation as resolved.
Outdated
}
extensions![i] = extensions![i].substring(1);
exts[i] = exts[i].substring(1);
}
}

Expand Down