File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -91,9 +91,7 @@ const codes = {
91
91
Z_VERSION_ERROR : constants . Z_VERSION_ERROR
92
92
} ;
93
93
94
- const ckeys = ObjectKeys ( codes ) ;
95
- for ( let ck = 0 ; ck < ckeys . length ; ck ++ ) {
96
- const ckey = ckeys [ ck ] ;
94
+ for ( const ckey of ObjectKeys ( codes ) ) {
97
95
codes [ codes [ ckey ] ] = ckey ;
98
96
}
99
97
@@ -911,9 +909,7 @@ ObjectDefineProperties(module.exports, {
911
909
912
910
// These should be considered deprecated
913
911
// expose all the zlib constants
914
- const bkeys = ObjectKeys ( constants ) ;
915
- for ( let bk = 0 ; bk < bkeys . length ; bk ++ ) {
916
- const bkey = bkeys [ bk ] ;
912
+ for ( const bkey of ObjectKeys ( constants ) ) {
917
913
if ( bkey . startsWith ( 'BROTLI' ) ) continue ;
918
914
ObjectDefineProperty ( module . exports , bkey , {
919
915
enumerable : false , value : constants [ bkey ] , writable : false
You can’t perform that action at this time.
0 commit comments