Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
Signed-off-by: Philemon Ukane <ukanephilemon@gmail.com>
  • Loading branch information
ukane-philemon committed Dec 7, 2023
1 parent 75a9662 commit 8b980be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/page/dcrdex/dex_onboarding_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -907,12 +907,12 @@ func (pg *DEXOnboarding) HandleUserInteractions() {
serverInfo.cert = cert
} else if pg.currentStep == onBoardingStepAddServer {
if utils.EditorsNotEmpty(pg.serverURLEditor.Editor) {
serverUrl := pg.serverURLEditor.Editor.Text()
if _, err := url.ParseRequestURI(serverUrl); err != nil {
serverURL := pg.serverURLEditor.Editor.Text()
if _, err := url.ParseRequestURI(serverURL); err != nil {
pg.serverURLEditor.SetError(values.String(values.StrDEXServerAddrWarning))
return
}
serverInfo.url = serverUrl
serverInfo.url = serverURL
serverInfo.cert = []byte(pg.serverCertEditor.Editor.Text())
} else {
pg.serverURLEditor.SetError(values.String(values.StrDEXServerAddrWarning))
Expand Down

0 comments on commit 8b980be

Please sign in to comment.