Fixed analyze issues
This commit is contained in:
parent
1362002e8c
commit
1e3ead968a
3 changed files with 3 additions and 2 deletions
|
@ -217,7 +217,7 @@ class Container {
|
||||||
if (_namedSingletons.containsKey(name)) {
|
if (_namedSingletons.containsKey(name)) {
|
||||||
return _namedSingletons[name] as T;
|
return _namedSingletons[name] as T;
|
||||||
} else if (_parent != null) {
|
} else if (_parent != null) {
|
||||||
return _parent!.findByName<T>(name);
|
return _parent.findByName<T>(name);
|
||||||
} else {
|
} else {
|
||||||
throw StateError(
|
throw StateError(
|
||||||
'This container does not have a singleton named "$name".');
|
'This container does not have a singleton named "$name".');
|
||||||
|
|
|
@ -61,7 +61,7 @@ class Route<T> {
|
||||||
var i = 0;
|
var i = 0;
|
||||||
|
|
||||||
if (_routeDefinition != null) {
|
if (_routeDefinition != null) {
|
||||||
for (var seg in _routeDefinition!.segments) {
|
for (var seg in _routeDefinition.segments) {
|
||||||
if (i++ > 0) b.write('/');
|
if (i++ > 0) b.write('/');
|
||||||
if (seg is ConstantSegment) {
|
if (seg is ConstantSegment) {
|
||||||
b.write(seg.text);
|
b.write(seg.text);
|
||||||
|
|
|
@ -6,6 +6,7 @@ import 'package:angel3_framework/http.dart';
|
||||||
|
|
||||||
void main() async {
|
void main() async {
|
||||||
var app = Angel();
|
var app = Angel();
|
||||||
|
// ignore: unused_local_variable
|
||||||
var http = AngelHttp(app);
|
var http = AngelHttp(app);
|
||||||
|
|
||||||
//TODO: To be reviewed
|
//TODO: To be reviewed
|
||||||
|
|
Loading…
Reference in a new issue