Skip to content

Commit

Permalink
faster implementation of replace(" ", "")
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeyls committed Apr 29, 2024
1 parent 8acbcb9 commit d637124
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ actual class OpenMapUseCase(
// Open in Webview
urlOpener.openUrl(
platformContext = platformContext,
url = "https://www.google.com/maps/?q=" + coordinates.replace(" ", "")
url = "https://www.google.com/maps/?q=" + coordinates.filter { it != ' ' }
)
}
}
Expand Down

0 comments on commit d637124

Please sign in to comment.