Skip to content

Commit db5728f

Browse files
committed
Rename outputStream to out for readability
1 parent 0475fc3 commit db5728f

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

app/src/main/kotlin/org/fossify/calendar/helpers/IcsExporter.kt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,30 +71,30 @@ class IcsExporter(private val context: Context) {
7171
}
7272
}
7373

74-
private fun fillReminders(event: Event, outputStream: OutputStream, reminderLabel: String) {
74+
private fun fillReminders(event: Event, out: OutputStream, reminderLabel: String) {
7575
event.getReminders().forEach { reminder ->
76-
outputStream.writeContentLine(BEGIN_ALARM)
77-
outputStream.writeTextProperty(DESCRIPTION, reminderLabel)
76+
out.writeContentLine(BEGIN_ALARM)
77+
out.writeTextProperty(DESCRIPTION, reminderLabel)
7878
if (reminder.type == REMINDER_NOTIFICATION) {
79-
outputStream.writeContentLine("$ACTION$DISPLAY")
79+
out.writeContentLine("$ACTION$DISPLAY")
8080
} else {
81-
outputStream.writeContentLine("$ACTION$EMAIL")
81+
out.writeContentLine("$ACTION$EMAIL")
8282
val attendee =
8383
calendars.firstOrNull { it.id == event.getCalDAVCalendarId() }?.accountName
8484
if (attendee != null) {
85-
outputStream.writeContentLine("$ATTENDEE$MAILTO$attendee")
85+
out.writeContentLine("$ATTENDEE$MAILTO$attendee")
8686
}
8787
}
8888

8989
val sign = if (reminder.minutes < -1) "" else "-"
90-
outputStream.writeContentLine("$TRIGGER:$sign${Parser().getDurationCode(abs(reminder.minutes.toLong()))}")
91-
outputStream.writeContentLine(END_ALARM)
90+
out.writeContentLine("$TRIGGER:$sign${Parser().getDurationCode(abs(reminder.minutes.toLong()))}")
91+
out.writeContentLine(END_ALARM)
9292
}
9393
}
9494

95-
private fun fillIgnoredOccurrences(event: Event, outputStream: OutputStream) {
95+
private fun fillIgnoredOccurrences(event: Event, out: OutputStream) {
9696
event.repetitionExceptions.forEach {
97-
outputStream.writeContentLine("$EXDATE:$it")
97+
out.writeContentLine("$EXDATE:$it")
9898
}
9999
}
100100

0 commit comments

Comments
 (0)