Skip to content

Commit ca66692

Browse files
committed
format
1 parent e862adb commit ca66692

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

lib/nitric.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ library;
33
export 'src/nitric.dart';
44
export 'src/context/common.dart';
55
export 'src/resources/common.dart';
6-
export 'src/api/lifecycle.dart';
6+
export 'src/api/lifecycle.dart';

lib/src/api/lifecycle.dart

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ enum LifecycleStage {
3232
/// Get the current lifecycle stage from environment variables
3333
LifecycleStage _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
7373
T? _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

Comments
 (0)