From 28a2b99989c2049a3227feef8d8eba43e152b027 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Wed, 22 Feb 2017 13:55:58 -0800 Subject: [PATCH] only request sky_snapshot if it is actually needed (#8340) --- packages/flutter_tools/lib/src/flx.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/flutter_tools/lib/src/flx.dart b/packages/flutter_tools/lib/src/flx.dart index 8f2bdf8a4e..f22d9f35e5 100644 --- a/packages/flutter_tools/lib/src/flx.dart +++ b/packages/flutter_tools/lib/src/flx.dart @@ -88,7 +88,6 @@ Future build({ bool includeRobotoFonts: true, bool reportLicensedPackages: false }) async { - snapshotterPath ??= artifacts.getArtifactPath(Artifact.skySnapshot); outputPath ??= defaultFlxOutputPath; kernelPath ??= defaultKernelPath; snapshotPath ??= defaultSnapshotPath; @@ -111,7 +110,7 @@ Future build({ // In a precompiled snapshot, the instruction buffer contains script // content equivalents int result = await createSnapshot( - snapshotterPath: snapshotterPath, + snapshotterPath: snapshotterPath ?? artifacts.getArtifactPath(Artifact.skySnapshot), mainPath: mainPath, snapshotPath: snapshotPath, depfilePath: depfilePath,