Skip to content

Commit 12e0329

Browse files
Add comment about why we are returning nil in instantiateViewController method.
1 parent 1492f5b commit 12e0329

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

WooCommerce/Classes/Authentication/AuthenticationManager.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,9 @@ extension AuthenticationManager: WordPressAuthenticatorDelegate {
383383
let supportViewController = UIStoryboard.dashboard.instantiateViewController(identifier: identifier,
384384
creator: { coder -> HelpAndSupportViewController? in
385385
guard let customURL = sourceTag.customHelpCenterURL else {
386+
/// Returning nil as we don't need to customise the HelpAndSupportViewController
387+
/// In this case `instantiateViewController` method will use the default `HelpAndSupportViewController` created from storyboard.
388+
///
386389
return nil
387390
}
388391

0 commit comments

Comments
 (0)