mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 03:59:35 +01:00
ktlint: First line of body expression fits on same line as function signature
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
88970c59a5
commit
f2da9b93de
@ -75,8 +75,7 @@ class PollCreateOptionViewHolder(
|
|||||||
private fun getTextWatcher(
|
private fun getTextWatcher(
|
||||||
pollCreateOptionItem: PollCreateOptionItem,
|
pollCreateOptionItem: PollCreateOptionItem,
|
||||||
itemsListener: PollCreateOptionsItemListener
|
itemsListener: PollCreateOptionsItemListener
|
||||||
) =
|
) = object : TextWatcher {
|
||||||
object : TextWatcher {
|
|
||||||
override fun afterTextChanged(s: Editable) {
|
override fun afterTextChanged(s: Editable) {
|
||||||
// unused atm
|
// unused atm
|
||||||
}
|
}
|
||||||
|
@ -93,8 +93,7 @@ class FileAttachmentPreviewFragment(
|
|||||||
filenames: String,
|
filenames: String,
|
||||||
filesToUpload: MutableList<String>,
|
filesToUpload: MutableList<String>,
|
||||||
functionToCall: (files: MutableList<String>, caption: String) -> Unit
|
functionToCall: (files: MutableList<String>, caption: String) -> Unit
|
||||||
) =
|
) = FileAttachmentPreviewFragment(filenames, filesToUpload, functionToCall)
|
||||||
FileAttachmentPreviewFragment(filenames, filesToUpload, functionToCall)
|
|
||||||
val TAG: String = FilterConversationFragment::class.java.simpleName
|
val TAG: String = FilterConversationFragment::class.java.simpleName
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -55,11 +55,9 @@ class SSLSocketFactoryCompat(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getDefaultCipherSuites(): Array<String>? =
|
override fun getDefaultCipherSuites(): Array<String>? = cipherSuites ?: delegate.defaultCipherSuites
|
||||||
cipherSuites ?: delegate.defaultCipherSuites
|
|
||||||
|
|
||||||
override fun getSupportedCipherSuites(): Array<String>? =
|
override fun getSupportedCipherSuites(): Array<String>? = cipherSuites ?: delegate.supportedCipherSuites
|
||||||
cipherSuites ?: delegate.supportedCipherSuites
|
|
||||||
|
|
||||||
override fun createSocket(s: Socket, host: String, port: Int, autoClose: Boolean): Socket {
|
override fun createSocket(s: Socket, host: String, port: Int, autoClose: Boolean): Socket {
|
||||||
val ssl = delegate.createSocket(s, host, port, autoClose)
|
val ssl = delegate.createSocket(s, host, port, autoClose)
|
||||||
|
Loading…
Reference in New Issue
Block a user