diff --git a/lib/src/lifecycle_module.dart b/lib/src/lifecycle_module.dart index 97a7464..c7f932f 100644 --- a/lib/src/lifecycle_module.dart +++ b/lib/src/lifecycle_module.dart @@ -17,7 +17,7 @@ library w_module.src.lifecycle_module; import 'dart:async'; import 'package:logging/logging.dart'; -import 'package:meta/meta.dart' show mustCallSuper, protected, required; +import 'package:meta/meta.dart' show mustCallSuper, protected; import 'package:opentracing/opentracing.dart'; import 'package:w_common/disposable.dart'; @@ -178,9 +178,6 @@ abstract class LifecycleModule extends SimpleModule with Disposable { } final tracer = globalTracer(); - if (tracer == null) { - return null; - } List references = []; if (_parentContext != null) { @@ -230,9 +227,6 @@ abstract class LifecycleModule extends SimpleModule with Disposable { } final tracer = globalTracer(); - if (tracer == null) { - return null; - } tracer .startSpan( diff --git a/test/event_test.dart b/test/event_test.dart index 1215feb..fbabb6c 100644 --- a/test/event_test.dart +++ b/test/event_test.dart @@ -28,10 +28,6 @@ void main() { event = Event(key); }); - test('should inherit from Stream', () { - expect(event is Stream, isTrue); - }); - test('should provide means to listen to the stream it was created from', () async { Completer completer = Completer(); diff --git a/test/utils.dart b/test/utils.dart index 7cc9c30..ce611c0 100644 --- a/test/utils.dart +++ b/test/utils.dart @@ -30,9 +30,6 @@ class _LogLevelMatcher extends Matcher { @override bool matches(dynamic record, Map matchState) { - if (_level == null) { - return false; - } if (record is LogRecord) { return record.level == _level; }