diff --git a/README.md b/README.md index ee467b63..c88f7602 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # angel_route -![version 1.0.0-dev+18](https://img.shields.io/badge/version-1.0.0--dev+18-red.svg) +![version 1.0.0-dev+19](https://img.shields.io/badge/version-1.0.0--dev+19-red.svg) ![build status](https://travis-ci.org/angel-dart/route.svg) A powerful, isomorphic routing library for Dart. diff --git a/lib/src/route.dart b/lib/src/route.dart index 303325b5..990368c4 100644 --- a/lib/src/route.dart +++ b/lib/src/route.dart @@ -127,7 +127,7 @@ class Route { } void _printDebug(msg) { - if (debug == true) print(msg); + // if (debug == true) print(msg); } Route._base(); @@ -340,8 +340,8 @@ class Route { matcher.firstMatch(path.replaceAll(_straySlashes, '')); /// Extracts route parameters from a given path. - Map parseParameters(String requestPath) { - Map result = {}; + Map parseParameters(String requestPath) { + Map result = {}; Iterable values = _parseParameters(requestPath.replaceAll(_straySlashes, '')); diff --git a/lib/src/router.dart b/lib/src/router.dart index 5dde5a8d..a02740ff 100644 --- a/lib/src/router.dart +++ b/lib/src/router.dart @@ -38,7 +38,7 @@ class Router extends Extensible { Router({this.debug: false}); void _printDebug(msg) { - if (debug == true) print(msg); + // if (debug == true) print(msg); } /// Adds a route that responds to the given path @@ -66,7 +66,7 @@ class Router extends Extensible { /// Returns a [Router] with a duplicated version of this tree. Router clone() { final router = new Router(debug: debug); - final newMounted = new Map.from(mounted); + final newMounted = new Map.from(mounted); for (Route route in routes) { if (route is! SymlinkRoute) { diff --git a/lib/src/routing_result.dart b/lib/src/routing_result.dart index b70f2ff9..0c533d58 100644 --- a/lib/src/routing_result.dart +++ b/lib/src/routing_result.dart @@ -59,7 +59,7 @@ class RoutingResult { /// All parameters on this sub-path and its children. Map get allParams { - final params = {}; + final Map params = {}; var search = this; while (search != null) { diff --git a/pubspec.yaml b/pubspec.yaml index 9fe06eff..43fe86ad 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: angel_route description: A powerful, isomorphic routing library for Dart. -version: 1.0.0-dev+18 +version: 1.0.0-dev+19 author: Tobe O homepage: https://github.com/angel-dart/angel_route dev_dependencies: