summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgengjiawen <technicalcute@gmail.com>2019-02-07 16:27:02 +0800
committerAnna Henningsen <anna@addaleax.net>2019-02-14 01:28:30 +0100
commitf4ce330f8f9d64ab8371352f1158ae9b502b5835 (patch)
tree03cfb51d79c31e7db0e081b8e6f19f5a3dc25100
parent1833782bb130259f49a3c8917c725dd68d4c4980 (diff)
downloadandroid-node-v8-f4ce330f8f9d64ab8371352f1158ae9b502b5835.tar.gz
android-node-v8-f4ce330f8f9d64ab8371352f1158ae9b502b5835.tar.bz2
android-node-v8-f4ce330f8f9d64ab8371352f1158ae9b502b5835.zip
src: remove redundant cast in node_http2.h
PR-URL: https://github.com/nodejs/node/pull/25978 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
-rw-r--r--src/node_http2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_http2.h b/src/node_http2.h
index 61858aecf6..660a713d19 100644
--- a/src/node_http2.h
+++ b/src/node_http2.h
@@ -388,7 +388,7 @@ class Http2Options {
}
void SetPaddingStrategy(padding_strategy_type val) {
- padding_strategy_ = static_cast<padding_strategy_type>(val);
+ padding_strategy_ = val;
}
padding_strategy_type GetPaddingStrategy() const {