Skip to content

Commit

Permalink
Fix unused param in a private ctor lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed Nov 17, 2024
1 parent 3d1421b commit 477c77a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/random_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ import 'test_utils.dart';
/// inputs (boolean, null, strings, or numbers) to modify the YAML and assert
/// that the change produced was expected.
void main() {
const seed = 0;
final generator = _Generator(seed: seed);
final generator = _Generator(maxDepth: 5);

const roundsOfTesting = 40;
const modificationsPerRound = 1000;
Expand Down Expand Up @@ -66,7 +65,7 @@ class _Generator {
final int maxDepth;

// ignore: unused_element
_Generator({int? seed, this.maxDepth = 5}) : r = Random(seed ?? 42);
_Generator({int seed = 0, required this.maxDepth}) : r = Random(seed);

int nextInt([int max = maxInt]) => r.nextInt(max);

Expand Down

0 comments on commit 477c77a

Please sign in to comment.