Fixed analyze issues

This commit is contained in:
Thomas Hii 2024-05-22 00:32:59 +08:00
parent 1362002e8c
commit 1e3ead968a
3 changed files with 3 additions and 2 deletions

View file

@ -217,7 +217,7 @@ class Container {
if (_namedSingletons.containsKey(name)) {
return _namedSingletons[name] as T;
} else if (_parent != null) {
return _parent!.findByName<T>(name);
return _parent.findByName<T>(name);
} else {
throw StateError(
'This container does not have a singleton named "$name".');

View file

@ -61,7 +61,7 @@ class Route<T> {
var i = 0;
if (_routeDefinition != null) {
for (var seg in _routeDefinition!.segments) {
for (var seg in _routeDefinition.segments) {
if (i++ > 0) b.write('/');
if (seg is ConstantSegment) {
b.write(seg.text);

View file

@ -6,6 +6,7 @@ import 'package:angel3_framework/http.dart';
void main() async {
var app = Angel();
// ignore: unused_local_variable
var http = AngelHttp(app);
//TODO: To be reviewed