File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -140,12 +140,12 @@ private extension AccountStore {
140140 . map {
141141 ( site, isWooCommerceActiveResult, wpSiteSettingsResult) -> Site in
142142 var site = site
143- if case let . success( isWooCommerceActive) = isWooCommerceActiveResult {
144- site = site . copy ( isWooCommerceActive : isWooCommerceActive )
145- }
146- if case let . success ( wpSiteSettings ) = wpSiteSettingsResult {
147- site = site. copy ( name : wpSiteSettings . name , description : wpSiteSettings . description , url : wpSiteSettings . url )
148- }
143+ guard case let . success( isWooCommerceActive) = isWooCommerceActiveResult,
144+ case let . success ( wpSiteSettings ) = wpSiteSettingsResult else {
145+ return site
146+ }
147+ site = site. copy ( isWooCommerceActive : isWooCommerceActive )
148+ site = site . copy ( name : wpSiteSettings . name , description : wpSiteSettings . description , url : wpSiteSettings . url )
149149 return site
150150 } . eraseToAnyPublisher ( )
151151 } else {
You can’t perform that action at this time.
0 commit comments