Skip to content

Commit

Permalink
[License] Enable prefer_collection_literals lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cbracken committed Dec 20, 2018
1 parent d120e15 commit c8f83fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions tools/licenses/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ linter:
- overridden_fields
- package_prefixed_library_names
- prefer_asserts_in_initializer_lists
- prefer_collection_literals
- prefer_const_declarations
- prefer_equal_for_default_values
- prefer_final_fields
Expand Down
4 changes: 1 addition & 3 deletions tools/licenses/lib/cache.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'dart:collection';

Map<Key, dynamic> _cache = LinkedHashMap<Key, dynamic>();
Map<Key, dynamic> _cache = <Key, dynamic>{};
const int _maxSize = 10;

T cache<T>(Key key, T getter()) {
Expand Down

0 comments on commit c8f83fb

Please sign in to comment.