Skip to content

Commit

Permalink
Remove unnecessary type assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
renggli committed Aug 25, 2023
1 parent bc42a2b commit 3d7654b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/src/functional/types.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export 'types/callback.dart';
export 'types/constant.dart';
export 'types/curry.dart';
export 'types/empty.dart';
export 'types/identity.dart';
export 'types/mapping.dart';
export 'types/partial.dart';
export 'types/predicate.dart';
export 'types/throwing.dart';
export 'types/curry.dart';
export 'types/partial.dart';
2 changes: 1 addition & 1 deletion test/math_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void main() {
group('bit', () {
final powersOf2 = List.generate(32, (i) => math.pow(2, i).toInt());
group('bitCount', () {
expectBitCount(int value, int expectedBitCount) {
void expectBitCount(int value, int expectedBitCount) {
final bitCount = value.bitCount;
expect(bitCount, expectedBitCount,
reason: 'Expected $value (0b${value.toRadixString(2)}) '
Expand Down
10 changes: 5 additions & 5 deletions web/rtree/rtree.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import 'package:more/collection.dart';

const guttmann = 'guttmann_';

final select = querySelector('#select')! as SelectElement;
final clear = querySelector('#clear')! as ButtonElement;
final random = querySelector('#random')! as ButtonElement;
final canvas = querySelector('#canvas')! as CanvasElement;
final console = querySelector('#console')! as ParagraphElement;
final select = querySelector('#select') as SelectElement;
final clear = querySelector('#clear') as ButtonElement;
final random = querySelector('#random') as ButtonElement;
final canvas = querySelector('#canvas') as CanvasElement;
final console = querySelector('#console') as ParagraphElement;

var tree = createTree();
var index = 0;
Expand Down

0 comments on commit 3d7654b

Please sign in to comment.