From dc4936ba50ad40a8f24ab7a3a46589250057b09e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Thu, 5 Nov 2020 00:05:52 +0100 Subject: [PATCH] crypto: fix comment in ByteSource PR-URL: https://github.com/nodejs/node/pull/35972 Refs: https://github.com/nodejs/node/pull/35821 Reviewed-By: Daniel Bevenius Reviewed-By: Zeyu Yang Reviewed-By: David Carlier Reviewed-By: Jiawen Geng Reviewed-By: Ricky Zhou <0x19951125@gmail.com> Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca --- src/crypto/crypto_util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/crypto_util.cc b/src/crypto/crypto_util.cc index 13d5a7f607841d..30cafa62a51704 100644 --- a/src/crypto/crypto_util.cc +++ b/src/crypto/crypto_util.cc @@ -237,7 +237,7 @@ ByteSource& ByteSource::operator=(ByteSource&& other) noexcept { std::unique_ptr ByteSource::ReleaseToBackingStore() { // It's ok for allocated_data_ to be nullptr but - // only if size_ is not zero. + // only if size_ is zero. CHECK_IMPLIES(size_ > 0, allocated_data_ != nullptr); std::unique_ptr ptr = ArrayBuffer::NewBackingStore( allocated_data_,