Use proper Kotlin syntax #7

Closed
opened 2019-09-30 12:57:58 +02:00 by Seil0 · 0 comments
Owner

For example:

replace

val result = CourseListParser().getCourseLinks(courseListURL)
if (result != null) {
   courseList = CourseList(CourseMeta(System.currentTimeMillis() / 1000, result.size), result)
}

with

CourseListParser().getCourseLinks(courseListURL)?.let{
   courseList = CourseList(CourseMeta(System.currentTimeMillis() / 1000, it.size), it)
}
For example: replace ```kotlin val result = CourseListParser().getCourseLinks(courseListURL) if (result != null) { courseList = CourseList(CourseMeta(System.currentTimeMillis() / 1000, result.size), result) } ``` with ```kotlin CourseListParser().getCourseLinks(courseListURL)?.let{ courseList = CourseList(CourseMeta(System.currentTimeMillis() / 1000, it.size), it) } ```
Seil0 self-assigned this 2019-09-30 12:57:58 +02:00
Seil0 added the due date 2019-10-02 2019-09-30 12:58:14 +02:00
Seil0 modified the due date from 2019-10-02 to 2019-10-01 2019-09-30 12:58:24 +02:00
Seil0 added the
code/internal
label 2019-09-30 13:00:09 +02:00
Seil0 modified the due date from 2019-10-01 to 2019-10-20 2019-10-04 12:34:54 +02:00
Seil0 closed this issue 2019-10-05 17:17:31 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

2019-10-20

Dependencies

No dependencies set.

Reference: Seil0/TheCitadelofRicks#7
No description provided.