@@ -32,7 +32,7 @@ enum LifecycleStage {
3232/// Get the current lifecycle stage from environment variables
3333LifecycleStage _getCurrentLifecycle () {
3434 final lifecycle = Platform .environment[nitricEnvironment];
35-
35+
3636 if (lifecycle == null ) {
3737 throw Exception (
3838 'Unable to determine the current Nitric lifecycle, please ensure the $nitricEnvironment environment variable is set' ,
@@ -66,8 +66,8 @@ T? _whenInLifecycles<T>(List<LifecycleStage> stages, T Function() callback) {
6666}
6767
6868/// If the current environment is running (local or cloud), execute the provided callback
69- T ? _whenRunning <T >(T Function () callback) =>
70- _whenInLifecycles < T >( [LifecycleStage .local, LifecycleStage .cloud], callback);
69+ T ? _whenRunning <T >(T Function () callback) => _whenInLifecycles < T >(
70+ [LifecycleStage .local, LifecycleStage .cloud], callback);
7171
7272/// If the current environment is collecting requirements, execute the provided callback
7373T ? _whenCollecting <T >(T Function () callback) =>
@@ -100,6 +100,5 @@ class Lifecycle {
100100 _whenCollecting <T >(callback);
101101
102102 /// If the current environment is a cloud environment, execute the provided callback
103- static T ? whenRunning <T >(T Function () callback) =>
104- _whenRunning <T >(callback);
105- }
103+ static T ? whenRunning <T >(T Function () callback) => _whenRunning <T >(callback);
104+ }
0 commit comments