Skip to content

Commit

Permalink
Add the exception import
Browse files Browse the repository at this point in the history
  • Loading branch information
jayohms committed Jul 21, 2021
1 parent dd43d08 commit 2050478
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import dev.hotwire.turbo.fragments.TurboWebFragment
import dev.hotwire.turbo.session.TurboSession
import dev.hotwire.turbo.session.TurboSessionNavHostFragment
import dev.hotwire.turbo.visit.TurboVisitOptions
import java.net.MalformedURLException
import java.net.URL

/**
Expand Down Expand Up @@ -133,7 +134,7 @@ interface TurboNavDestination {
return try {
URL(newLocation)
true
} catch (e: java.net.MalformedURLException) {
} catch (e: MalformedURLException) {
false
}
}
Expand Down

0 comments on commit 2050478

Please sign in to comment.