Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit e2a00ab

Browse files
chirayukmhevery
authored andcommitted
fix(generator): remove invalid sort on elements
cacheUris are sorted later. sorting the elements can be invalid (e.g. SimpleStringLiteral has == but no compareTo) Closes #554
1 parent b59f744 commit e2a00ab

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/tools/template_cache_generator.dart

-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ class TemplateCollectingVisitor {
175175
var paramName = namedArg.name.label.name;
176176
if (paramName == 'preCacheUrls') {
177177
assertList(namedArg.expression).elements
178-
..sort()
179178
..forEach((expression) =>
180179
cacheUris.add(assertString(expression).stringValue));
181180
}

0 commit comments

Comments
 (0)