Skip to content

Commit

Permalink
Use Either.unit
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Jul 25, 2022
1 parent 69f26b1 commit 47bced4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private[tls] trait TLSContextCompanionPlatform { self: TLSContext.type =>
Option(tlsSock.ssl.verifyError())
.map(e => new JavaScriptSSLException(js.JavaScriptException(e)))
.toLeft(())
else Right(())
else Either.unit
dispatcher.unsafeRunAndForget(verifyError.complete(result))
}
)
Expand Down

0 comments on commit 47bced4

Please sign in to comment.