Skip to content
Snippets Groups Projects
Commit 910882ce authored by Kevin Moore's avatar Kevin Moore Committed by GitHub
Browse files

A few more strong-mode fixes (#1463)

parent 14478a4a
No related branches found
No related tags found
No related merge requests found
......@@ -35,10 +35,10 @@ import 'package:pub_semver/pub_semver.dart';
///
/// [compat]: https://gist.github.com/nex3/10942218
final pubConstraints = {
"barback": new VersionConstraint.parse(">=0.15.0 <0.15.3"),
"source_span": new VersionConstraint.parse(">=1.0.0 <2.0.0"),
"stack_trace": new VersionConstraint.parse(">=0.9.1 <2.0.0"),
"async": new VersionConstraint.parse(">=1.8.0 <2.0.0")
"barback": new VersionConstraint.parse(">=0.15.0 <0.15.3") as VersionRange,
"source_span": new VersionConstraint.parse(">=1.0.0 <2.0.0") as VersionRange,
"stack_trace": new VersionConstraint.parse(">=0.9.1 <2.0.0") as VersionRange,
"async": new VersionConstraint.parse(">=1.8.0 <2.0.0") as VersionRange
};
/// Converts [id] to a "package:" URI.
......
......@@ -29,8 +29,8 @@ void pubBuildAndServeShouldFail(String description, {List<String> args,
}
// Usage errors also print the usage, so validate that.
var buildExpectation = buildError;
var serveExpectation = serveError;
Object buildExpectation = buildError;
Object serveExpectation = serveError;
if (exitCode == exit_codes.USAGE) {
buildExpectation = allOf(
startsWith(buildExpectation), contains("Usage: pub build"));
......
......@@ -31,7 +31,7 @@ See http://dartlang.org/tools/pub/cmd/pub-uploader.html for detailed documentati
ScheduledProcess startPubUploader(ScheduledServer server, List<String> args) {
var tokenEndpoint = server.url.then((url) =>
url.resolve('/token').toString());
args = ['uploader', '--server', tokenEndpoint]..addAll(args);
args = <Object>['uploader', '--server', tokenEndpoint]..addAll(args);
return startPub(args: args, tokenEndpoint: tokenEndpoint);
}
......
......@@ -12,7 +12,7 @@ import '../descriptor.dart' as d;
import '../test_pub.dart';
import 'utils.dart';
Function size(int size) {
ValidatorCreator size(int size) {
return (entrypoint) =>
new SizeValidator(entrypoint, new Future.value(size));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment