Skip to content

Commit

Permalink
fix: wrong judge condition for opencc dict type [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed Mar 17, 2024
1 parent d9d4b9f commit b66c71a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ abstract class Dictionary {
}

protected fun ensureBin(dest: File) {
if (dest.extension != Type.OCD.ext || dest.extension != Type.OCD2.ext) {
if (dest.extension != Type.OCD.ext && dest.extension != Type.OCD2.ext) {
throw IllegalArgumentException("Dest file name must end with .${Type.OCD.ext} or .${Type.OCD2.ext}")
}
dest.delete()
Expand Down

0 comments on commit b66c71a

Please sign in to comment.