Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit 9f2bc9c

Browse files
committed
READMEの修正
1 parent 12d7253 commit 9f2bc9c

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

README.ja.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -310,11 +310,7 @@ class LocalDateTimeDeserializerImpl(
310310

311311
override val srcClass: Class<String> = String::class.javaObjectType
312312

313-
override fun deserialize(source: String?): LocalDateTime? {
314-
return source?.let {
315-
LocalDateTime.parse(it, formatter)
316-
}
317-
}
313+
override fun deserialize(source: String): LocalDateTime = LocalDateTime.parse(source, formatter)
318314
}
319315
```
320316

@@ -340,11 +336,7 @@ class LocalDateTimeDeserializerImpl(
340336

341337
override val srcClass: Class<String> = String::class.javaObjectType
342338

343-
override fun deserialize(source: String?): LocalDateTime? {
344-
return source?.let {
345-
LocalDateTime.parse(it, formatter)
346-
}
347-
}
339+
override fun deserialize(source: String): LocalDateTime = LocalDateTime.parse(source, formatter)
348340
}
349341
```
350342

0 commit comments

Comments
 (0)