Skip to content

Commit 027ce92

Browse files
committed
format
1 parent 21c9a7f commit 027ce92

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

lib/src/generate/build.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Stream<BuildResult> serve(PhaseGroup phaseGroup,
155155
await watchImpl.terminate();
156156
}, cancelWhen: watchImpl.onTerminated);
157157

158-
watchImpl.onTerminated.then((_) async{
158+
watchImpl.onTerminated.then((_) async {
159159
await serverStarted;
160160
await stopServer();
161161
options.logListener.cancel();
@@ -167,7 +167,8 @@ Stream<BuildResult> serve(PhaseGroup phaseGroup,
167167
/// Given [terminateEventStream], call [onTerminate] the first time an event is
168168
/// seen. If a second event is recieved, simply exit.
169169
StreamSubscription _setupTerminateLogic(
170-
Stream terminateEventStream, Future onTerminate(), {Future cancelWhen}) {
170+
Stream terminateEventStream, Future onTerminate(),
171+
{Future cancelWhen}) {
171172
terminateEventStream ??= ProcessSignal.SIGINT.watch();
172173
int numEventsSeen = 0;
173174
var terminateListener;

lib/src/generate/build_impl.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class BuildImpl {
109109
(node) => (node as GeneratedAssetNode).needsUpdate = true);
110110
} else {
111111
done.complete(new BuildResult(BuildStatus.Failure, buildType, [],
112-
exception: new BuildScriptUpdatedException()));
112+
exception: new BuildScriptUpdatedException()));
113113
}
114114
}
115115
});
@@ -133,8 +133,7 @@ class BuildImpl {
133133
});
134134

135135
/// Run a fresh build.
136-
var result =
137-
await logWithTime(_logger, 'Running build', _runPhases);
136+
var result = await logWithTime(_logger, 'Running build', _runPhases);
138137

139138
/// Write out the dependency graph file.
140139
await logWithTime(_logger, 'Caching finalized dependency graph',

test/asset/file_based_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ import 'package:build/build.dart';
1111

1212
import '../common/common.dart';
1313

14-
final packageGraph =
15-
new PackageGraph.forPath('test/fixtures/basic_pkg');
16-
final newLine = Platform.isWindows ? '\r\n' : '\n';
14+
final packageGraph = new PackageGraph.forPath('test/fixtures/basic_pkg');
15+
final newLine = Platform.isWindows ? '\r\n' : '\n';
1716

1817
main() {
1918
group('FileBasedAssetReader', () {
@@ -29,7 +28,8 @@ main() {
2928
});
3029

3130
test('can read package dependency files in the lib dir', () async {
32-
expect(await reader.readAsString(makeAssetId('a|lib/a.txt')), 'A$newLine');
31+
expect(
32+
await reader.readAsString(makeAssetId('a|lib/a.txt')), 'A$newLine');
3333
});
3434

3535
test('can check for existence of any application package files', () async {

0 commit comments

Comments
 (0)