nits

Fix one analysis warning, and some nits in `spark.dart`.