Skip to content

Commit 122ac4b

Browse files
committed
internal_link [nfc]: Narrow a type a little bit
1 parent 5e0b964 commit 122ac4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/model/internal_link.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import 'package:json_annotation/json_annotation.dart';
44
import '../api/model/narrow.dart';
55
import 'narrow.dart';
66
import 'store.dart';
7+
import 'stream.dart';
78

89
part 'internal_link.g.dart';
910

@@ -238,7 +239,7 @@ enum _NarrowOperator {
238239
///
239240
/// Returns null if the operand has an unexpected shape, or has the old shape
240241
/// (stream name but no ID) and we don't know of a stream by the given name.
241-
int? _parseStreamOperand(String operand, PerAccountStore store) {
242+
int? _parseStreamOperand(String operand, StreamStore store) {
242243
// "New" (2018) format: ${stream_id}-${stream_name} .
243244
final match = RegExp(r'^(\d+)(?:-.*)?$').firstMatch(operand);
244245
final newFormatStreamId = (match != null) ? int.parse(match.group(1)!, radix: 10) : null;

0 commit comments

Comments
 (0)