Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.

Commit 98466f1

Browse files
#179. Delete comment. One-line function.
1 parent 32a379b commit 98466f1

File tree

1 file changed

+1
-4
lines changed
  • app/src/main/java/com/blogspot/e_kanivets/moneytracker/activity/record

1 file changed

+1
-4
lines changed

app/src/main/java/com/blogspot/e_kanivets/moneytracker/activity/record/MainActivity.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,10 @@ class MainActivity : BaseDrawerActivity() {
9797
btnAddIncome.setOnClickListener { addIncome() }
9898
}
9999

100-
private fun getPositionWithoutSummary(position: Int): Int {
101-
return position - 1
102-
}
100+
private fun getPositionWithoutSummary(position: Int) = position - 1
103101

104102
private fun editRecord(position: Int) {
105103
AnswersProxy.get().logButton("Edit Record")
106-
// -1 because SummaryView
107104
val record = recordList[getRecordPosition(position)]
108105
startAddRecordActivity(record, AddRecordActivity.Mode.MODE_EDIT, record.type)
109106
}

0 commit comments

Comments
 (0)