mirror of
https://github.com/google/nomulus
synced 2026-01-09 23:47:49 +00:00
Flatten the domain and application create flows
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=136601151
This commit is contained in:
@@ -185,7 +185,13 @@ public class FlowModule {
|
||||
|
||||
@Provides
|
||||
@FlowScope
|
||||
static Optional<AuthInfo> provideAuthInfo(ResourceCommand resourceCommand) {
|
||||
static AuthInfo provideAuthInfo(ResourceCommand resourceCommand) {
|
||||
return ((SingleResourceCommand) resourceCommand).getAuthInfo();
|
||||
}
|
||||
|
||||
@Provides
|
||||
@FlowScope
|
||||
static Optional<AuthInfo> provideOptionalAuthInfo(ResourceCommand resourceCommand) {
|
||||
return Optional.fromNullable(((SingleResourceCommand) resourceCommand).getAuthInfo());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user