Skip to content

Commit

Permalink
Fix FileCodec (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
forhad013 authored Oct 23, 2024
1 parent 9a439c3 commit 187d0d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import kotlinx.serialization.json.io.encodeToSink as encode
*/
public inline fun <reified T : @Serializable Any> FileCodec(
file: Path,
tempFile: Path = Path("${file.name}.temp"),
tempFile: Path = Path("$file.temp"),
json: Json = DefaultJson,
): FileCodec<T> = FileCodec(
file = file,
Expand Down

0 comments on commit 187d0d2

Please sign in to comment.