Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Simplify code
  • Loading branch information
jamshidrostami committed Aug 22, 2019
1 parent e51c24c commit 7c04b56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class CsvExporter(private val context: Context, database: AppDatabase) {
// Score
csv.add(target.zoneToString(scoringRing, index))

csv.add(if (arrowNumber == null) "" else arrowNumber)
csv.add(arrowNumber ?: "")

// Coordinates (X, Y)
csv.add(x.toString())
Expand Down

0 comments on commit 7c04b56

Please sign in to comment.