File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -454,9 +454,9 @@ int FileHandle::ReadStart() {
454454
455455 // Push the read wrap back to the freelist, or let it be destroyed
456456 // once we’re exiting the current scope.
457- constexpr size_t wanted_freelist_fill = 100 ;
457+ constexpr size_t kWantedFreelistFill = 100 ;
458458 auto & freelist = handle->binding_data_ ->file_handle_read_wrap_freelist ;
459- if (freelist.size () < wanted_freelist_fill ) {
459+ if (freelist.size () < kWantedFreelistFill ) {
460460 read_wrap->Reset ();
461461 freelist.emplace_back (std::move (read_wrap));
462462 }
@@ -721,7 +721,7 @@ void AfterScanDir(uv_fs_t* req) {
721721 int r;
722722 std::vector<Local<Value>> name_v;
723723
724- for (int i = 0 ; ; i++ ) {
724+ for (;; ) {
725725 uv_dirent_t ent;
726726
727727 r = uv_fs_scandir_next (req, &ent);
@@ -762,7 +762,7 @@ void AfterScanDirWithTypes(uv_fs_t* req) {
762762 std::vector<Local<Value>> name_v;
763763 std::vector<Local<Value>> type_v;
764764
765- for (int i = 0 ; ; i++ ) {
765+ for (;; ) {
766766 uv_dirent_t ent;
767767
768768 r = uv_fs_scandir_next (req, &ent);
You can’t perform that action at this time.
0 commit comments