File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Networking/Networking/ApplicationPassword Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,17 +94,17 @@ final class DefaultApplicationPasswordUseCase: ApplicationPasswordUseCase {
9494 /// - Returns: Generated `ApplicationPassword` instance
9595 ///
9696 func generateNewPassword( ) async throws -> ApplicationPassword {
97- let password = try await {
97+ async let password = try {
9898 do {
9999 return try await createApplicationPasswordUsingWPCOMAuthToken ( )
100100 } catch ApplicationPasswordUseCaseError . duplicateName {
101101 try await deletePassword ( )
102102 return try await createApplicationPasswordUsingWPCOMAuthToken ( )
103103 }
104104 } ( )
105- let username = try await fetchWPAdminUsername ( )
105+ async let username = try fetchWPAdminUsername ( )
106106
107- let applicationPassword = ApplicationPassword ( wpOrgUsername: username, password: Secret ( password) )
107+ let applicationPassword = try await ApplicationPassword ( wpOrgUsername: username, password: Secret ( password) )
108108 saveApplicationPassword ( applicationPassword)
109109 return applicationPassword
110110 }
You can’t perform that action at this time.
0 commit comments