lib/suggestion-list-element.js
// if no item has been selected
if no item has been selected
if no item has been selected
confirmSelection () {
    if (!this.model.isActive()) { return }
    const item = this.getSelectedItem()
    if (item != null) {
      return this.model.confirm(item)
    } else {
      return this.model.cancel()
    }
  }
confirmSelection ( ) { if ( ! this . model . isActive ( ) ) { return } const item = this . getSelectedItem ( ) if ( item != null ) { return this . model . confirm ( item ) } else { return this . model . cancel ( ) } }
if no item has been selected
if no item has been selected