1
0
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:
breandan.considine 2016-07-17 12:29:43 -04:00
parent 5190ae21f0
commit 030b1b5ad8
2 changed files with 3 additions and 3 deletions
src/main/kotlin/com/johnlindquist/acejump

View File

@ -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
}
}

View File

@ -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())