Skip to content

Commit

Permalink
use "nonEmpty" instead of "headOption.isDefined"
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Apr 2, 2017
1 parent 62217c2 commit c50858e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -29,7 +29,7 @@ private[scalikejdbc] class AsyncResultSetImpl(rows: IndexedSeq[RowData])
with AsyncResultSet {

// AsyncResultSet API
override def next(): Boolean = rows.headOption.isDefined
override def next(): Boolean = rows.nonEmpty
override def tail(): AsyncResultSet = new AsyncResultSetImpl(rows.tail)

}

0 comments on commit c50858e

Please sign in to comment.