mirror of
https://github.com/chenasraf/dart_script_runner.git
synced 2026-05-18 01:49:04 +00:00
chore: format
This commit is contained in:
@@ -82,7 +82,6 @@ class ScriptRunnerConfig {
|
||||
final source = sourceMap.values.first;
|
||||
final configSource = sourceMap.keys.first;
|
||||
|
||||
|
||||
final env = <String, String>{}..addAll(
|
||||
(source['env'] as Map?)?.cast<String, String>() ?? {},
|
||||
);
|
||||
@@ -175,8 +174,7 @@ class ScriptRunnerConfig {
|
||||
|
||||
static Future<Map<String, Map>> _tryFindConfig(
|
||||
FileSystem fs, String startDir) async {
|
||||
final explorer =
|
||||
Unaconfig('script_runner', fs: fs);
|
||||
final explorer = Unaconfig('script_runner', fs: fs);
|
||||
final config = await explorer.search();
|
||||
if (config != null) {
|
||||
final source = await explorer.findConfig();
|
||||
@@ -294,4 +292,3 @@ enum OS {
|
||||
linux,
|
||||
// other
|
||||
}
|
||||
|
||||
|
||||
@@ -201,4 +201,3 @@ class RunnableScript {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -182,4 +182,3 @@ Future<void> _writePubspec(FileSystem fs, [String? contents]) async {
|
||||
].join('\n'),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user