We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 615c296 commit a3101c8Copy full SHA for a3101c8
app/src/main/java/com/infomaniak/mail/ui/newMessage/InsertLinkDialog.kt
@@ -128,9 +128,7 @@ class InsertLinkDialog @Inject constructor(
128
return "https://$strippedUserInput"
129
}
130
131
- private fun validate(userUrlInput: String): Boolean {
132
- return Patterns.WEB_URL.matcher(userUrlInput).matches()
133
- }
+ private fun validate(userUrlInput: String): Boolean = Patterns.WEB_URL.matcher(userUrlInput).matches()
134
135
companion object {
136
private const val PROTOCOL_SEPARATOR = "://"
0 commit comments