Reformat code (#323)

This commit is contained in:
Neeraj Gupta 2023-10-31 11:41:41 +05:30 committed by GitHub
commit 4ab4b51b56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,3 @@
import 'dart:io';
import 'package:ente_auth/core/constants.dart';
@ -94,7 +92,7 @@ class UpdateService {
// Note: in auth, currently we don't have a way to identify if the
// app was installed from play store, f-droid or github based on pkg name
if (Platform.isAndroid) {
if(flavor == "playstore") {
if (flavor == "playstore") {
return const Tuple2(
"Play Store",
"market://details??id=io.ente.auth",
@ -120,8 +118,7 @@ class UpdateService {
// Fall back if we fail to open play-store market app on android
if (Platform.isAndroid && url.startsWith("market://")) {
launchUrlString(
"https://play.google.com/store/apps/details?id=io"
".ente.auth",
"https://play.google.com/store/apps/details?id=io.ente.auth",
mode: LaunchMode.externalApplication,
).ignore();
}
@ -129,7 +126,8 @@ class UpdateService {
}
bool isIndependent() {
return flavor == "independent" || _packageInfo.packageName.endsWith("independent");
return flavor == "independent" ||
_packageInfo.packageName.endsWith("independent");
}
}