Fixed warnings

This commit is contained in:
thomashii 2021-09-12 22:12:18 +08:00
parent 21455a327c
commit c0457f0204
8 changed files with 7 additions and 10 deletions

View file

@ -1,6 +1,5 @@
name: angel_container_generator
version: 2.0.0
author: Tobe O <thosakwe@gmail.com>
description: Codegen support for using pkg:reflectable with pkg:angel_container.
homepage: https://github.com/angel-dart/container.git
publish_to: none

View file

@ -2,7 +2,6 @@ name: angel_eventsource
version: 2.0.0
description: Server-sent Events (SSE) plugin for Angel.
homepage: https://github.com/angel-dart/eventsource
author: Tobe O <thosakwe@gmail.com>
publish_to: none
environment:
sdk: ">=2.10.0 <3.0.0"

View file

@ -1,5 +1,3 @@
import 'dart:io';
import 'package:angel3_container/mirrors.dart';
import 'package:angel3_framework/angel3_framework.dart';
import 'package:angel3_framework/http.dart';

View file

@ -1,5 +1,3 @@
import 'dart:io';
import 'package:angel3_container/mirrors.dart';
import 'package:angel3_framework/angel3_framework.dart';
import 'package:angel3_framework/http.dart';

View file

@ -243,7 +243,9 @@ abstract class ResponseContext<RawResponse>
final m = _findRoute(route.router);
if (m != null) return m;
} else if (route.name == name) return route;
} else if (route.name == name) {
return route;
}
}
return null;

View file

@ -31,6 +31,8 @@ AnsiCode chooseLogColor(Level level) {
} else if (level == Level.CONFIG ||
level == Level.FINE ||
level == Level.FINER ||
level == Level.FINEST) return lightGray;
level == Level.FINEST) {
return lightGray;
}
return resetAll;
}

View file

@ -220,5 +220,5 @@ class CustomCloseService extends Service {
@Expose('/foo')
class FooController extends Controller {
@Expose('/bar')
bar() async => 'baz';
Future<String> bar() async => 'baz';
}

View file

@ -1,5 +1,4 @@
import 'dart:async';
import 'dart:convert';
import 'package:angel3_orm/angel3_orm.dart';
import 'package:test/test.dart';
import 'models/has_map.dart';