Skip to content

Commit adccd66

Browse files
author
Github-actions
committed
Automatic linting
1 parent c782bb1 commit adccd66

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

flatpak/scripts/manifest_generator.dart

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ void main(List<String> arguments) async {
1313
'You must run this script with a metadata file argument, using the --meta flag.');
1414
}
1515
if (arguments.length == metaIndex + 1) {
16-
throw Exception(
17-
'The --meta flag must be followed by the path to the metadata file.');
16+
throw Exception('The --meta flag must be followed by the path to the metadata file.');
1817
}
1918

2019
final metaFile = File(arguments[metaIndex + 1]);
@@ -26,20 +25,17 @@ void main(List<String> arguments) async {
2625

2726
final fetchFromGithub = arguments.contains('--github');
2827

29-
final outputDir =
30-
Directory('${Directory.current.path}/flatpak_generator exports');
28+
final outputDir = Directory('${Directory.current.path}/flatpak_generator exports');
3129
outputDir.createSync();
3230

3331
final manifestGenerator = FlatpakManifestGenerator(meta);
34-
final manifestContent =
35-
await manifestGenerator.generateFlatpakManifest(fetchFromGithub);
32+
final manifestContent = await manifestGenerator.generateFlatpakManifest(fetchFromGithub);
3633
final manifestPath = '${outputDir.path}/${meta.appId}.json';
3734
final manifestFile = File(manifestPath);
3835
manifestFile.writeAsStringSync(manifestContent);
3936
print('Generated $manifestPath');
4037

41-
final flathubJsonContent =
42-
await manifestGenerator.generateFlathubJson(fetchFromGithub);
38+
final flathubJsonContent = await manifestGenerator.generateFlathubJson(fetchFromGithub);
4339
if (flathubJsonContent != null) {
4440
final flathubJsonPath = '${outputDir.path}/flathub.json}';
4541
final flathubJsonFile = File(flathubJsonPath);
@@ -118,8 +114,7 @@ class FlatpakManifestGenerator {
118114

119115
const encoder = JsonEncoder.withIndent(' ');
120116

121-
final onlyArchListInput =
122-
fetchFromGithub ? _githubArchSupport! : _localArchSupport!;
117+
final onlyArchListInput = fetchFromGithub ? _githubArchSupport! : _localArchSupport!;
123118

124119
final onlyArchList = List<String>.empty(growable: true);
125120
for (final e in onlyArchListInput.entries) {
@@ -135,8 +130,7 @@ class FlatpakManifestGenerator {
135130
}
136131
}
137132

138-
void _lazyGenerateArchSupportMap(
139-
bool fetchFromGithub, List<ReleaseAsset> assets) {
133+
void _lazyGenerateArchSupportMap(bool fetchFromGithub, List<ReleaseAsset> assets) {
140134
if (fetchFromGithub) {
141135
if (_githubArchSupport == null) {
142136
_githubArchSupport = <CPUArchitecture, bool>{

0 commit comments

Comments
 (0)