Skip to content

Commit

Permalink
Don't use double dashes in production file names
Browse files Browse the repository at this point in the history
  • Loading branch information
inetic committed Oct 9, 2024
1 parent 324f1bc commit db0abe4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions util/release.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ enum Flavor {
}
}

String? get displayString {
String get displayString {
switch (this) {
case Flavor.production:
return "";
Expand Down Expand Up @@ -94,7 +94,7 @@ Future<void> main(List<String> args) async {
}

if (buildDesc.flavor != Flavor.production) {
await addBadgeToIcons(buildDesc.flavor.displayString ?? "");
await addBadgeToIcons(buildDesc.flavor.displayString);
}

// TODO: use `pubspec.name` here but first rename it from "ouisync_app" to "ouisync"
Expand Down Expand Up @@ -426,7 +426,7 @@ class BuildDesc {
..write('.')
..write(version.patch);

if (flavor.displayString != null) {
if (flavor.displayString.isNotEmpty) {
buffer
..write('-')
..write(flavor.displayString);
Expand Down

0 comments on commit db0abe4

Please sign in to comment.