Skip to content

Commit

Permalink
Merge pull request #313 from google/more_analysis
Browse files Browse the repository at this point in the history
fix a few analysis issues
  • Loading branch information
devoncarew committed Oct 16, 2016
2 parents 3cf59cb + 1bb0d19 commit 1e9f5e4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .analysis_options
@@ -0,0 +1,2 @@
analyzer:
# strong-mode: true
4 changes: 2 additions & 2 deletions lib/grinder.dart
Expand Up @@ -49,9 +49,9 @@ Future grind(List<String> args, {bool verifyProjectRoot: true}) {
} catch (e) {
if (e is GrinderException) {
fail(e.message);
} else {
return new Future.error(e);
}

return new Future.error(e);
}
}

Expand Down
6 changes: 2 additions & 4 deletions lib/src/cli.dart
Expand Up @@ -4,7 +4,7 @@
library grinder.src.cli;

import 'dart:async';
import 'dart:convert' show JSON, UTF8;
import 'dart:convert' show JSON;

import 'package:unscripted/unscripted.dart';

Expand All @@ -14,7 +14,7 @@ import 'singleton.dart' as singleton;
import 'utils.dart';

// This version must be updated in tandem with the pubspec version.
const String appVersion = '0.8.0+2';
const String appVersion = '0.8.0+3';

List<String> grinderArgs() => _args;
List<String> _args;
Expand Down Expand Up @@ -92,8 +92,6 @@ cli(@Rest(
fail(message);
});
}

return new Future.value();
}

Script script = new Script(cli);
Expand Down
10 changes: 2 additions & 8 deletions test/grinder_sdk_test.dart
Expand Up @@ -18,20 +18,14 @@ main() {
}
});

test('getSdkDir', () {
expect(getSdkDir(), isNotNull);
expect(getSdkDir(grinderArgs()), isNotNull);
expect(getSdkDir([]), isNotNull);
test('sdkDir', () {
expect(sdkDir, isNotNull);
});

test('get dartVM', () {
expect(dartVM, isNotNull);
});

// test('DartSdk.location', () {
// expect(DartSdk.location, isNotNull);
// });

test('Dart.version', () {
expect(Dart.version(quiet: true), isNotEmpty);
});
Expand Down

0 comments on commit 1e9f5e4

Please sign in to comment.