mirror of
https://github.com/chylex/IntelliJ-AceJump.git
synced 2025-04-09 17:15:43 +02:00
Remove unnecessary !!s
This commit is contained in:
parent
5190ae21f0
commit
030b1b5ad8
src/main/kotlin/com/johnlindquist/acejump
@ -29,7 +29,7 @@ class AceFinder(val project: Project, val document: DocumentImpl, val editor: Ed
|
||||
|
||||
var startResult: Int = 0
|
||||
var endResult: Int = 0
|
||||
var allowedCount: Int = getAllowedCharacters()!!.length
|
||||
var allowedCount: Int = getAllowedCharacters().length
|
||||
var results: List<Int>? = null
|
||||
var getEndOffset: Boolean = false
|
||||
var firstChar: String = ""
|
||||
@ -155,7 +155,7 @@ class AceFinder(val project: Project, val document: DocumentImpl, val editor: Ed
|
||||
eventDispatcher?.addListener(changeListener)
|
||||
}
|
||||
|
||||
fun getAllowedCharacters(): CharSequence? {
|
||||
fun getAllowedCharacters(): CharSequence {
|
||||
return ALLOWED_CHARACTERS
|
||||
}
|
||||
}
|
@ -75,7 +75,7 @@ open class AceJumpAction() : DumbAwareAction() {
|
||||
val textPointPairs: MutableList<Pair<String, Point>> = ArrayList()
|
||||
val total = results.size - 1
|
||||
|
||||
val letters = aceFinder.getAllowedCharacters()!!
|
||||
val letters = aceFinder.getAllowedCharacters()
|
||||
val len = letters.length
|
||||
val groups = Math.floor(total.toDouble() / len)
|
||||
// print("groups: " + groups.toString())
|
||||
|
Loading…
Reference in New Issue
Block a user