Skip to content

Commit 00c409b

Browse files
authored
Merge branch 'ya/StorePreview' into 5bfa/GH-StorePreviewFollowup
2 parents fae9091 + 4e24f7d commit 00c409b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Files.App/Helpers/Application/AppLifecycleHelper.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ public static class AppLifecycleHelper
2929
/// <summary>
3030
/// Gets the value that provides application environment or branch name.
3131
/// </summary>
32-
public static AppEnvironment AppEnvironment { get; } =
33-
#if DEBUG
34-
AppEnvironment.Dev;
35-
#else
36-
AppEnvironment.cd_app_env_placeholder; // This is replaced to an appropriate enum value by a CD pipeline
37-
#endif
32+
public static AppEnvironment AppEnvironment =>
33+
Enum.TryParse("cd_app_env_placeholder", true, out AppEnvironment appEnvironment))
34+
? appEnvironment;
35+
: AppEnvironment.Dev;
36+
}
37+
}
3838

3939
/// <summary>
4040
/// Gets application package version.

0 commit comments

Comments
 (0)