ThisDatabaseDocument to connect or not to connect?

When I look at the libreoffice help (7.6) for ThisDatabaseDocument it says: ThisDatabaseDocument addresses the active Base document
The example looks as follows:

Dim form As Object
ThisDatabaseDocument.CurrentController.connect("","")
form = ThisDatabaseDocument.FormDocuments.getByName("formName").open )
form.currentController.frame.ContainerWindow.IsMaximized = True

What is the use of the 2nd line :ThisDatabaseDocument.CurrentController.connect("","") because I can simply leave it and the result is the same.

If you open a form in Base the connection to the database will be established. So the 2nd line isn’t needed.
3rd line ends with wrong bracket…

Thanks a lot! My database opens a form (menu) when it is started, so that is why I never had to write that line.