File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -454,9 +454,9 @@ int FileHandle::ReadStart() {
454
454
455
455
// Push the read wrap back to the freelist, or let it be destroyed
456
456
// once we’re exiting the current scope.
457
- constexpr size_t wanted_freelist_fill = 100 ;
457
+ constexpr size_t kWantedFreelistFill = 100 ;
458
458
auto & freelist = handle->binding_data_ ->file_handle_read_wrap_freelist ;
459
- if (freelist.size () < wanted_freelist_fill ) {
459
+ if (freelist.size () < kWantedFreelistFill ) {
460
460
read_wrap->Reset ();
461
461
freelist.emplace_back (std::move (read_wrap));
462
462
}
@@ -721,7 +721,7 @@ void AfterScanDir(uv_fs_t* req) {
721
721
int r;
722
722
std::vector<Local<Value>> name_v;
723
723
724
- for (int i = 0 ; ; i++ ) {
724
+ for (;; ) {
725
725
uv_dirent_t ent;
726
726
727
727
r = uv_fs_scandir_next (req, &ent);
@@ -762,7 +762,7 @@ void AfterScanDirWithTypes(uv_fs_t* req) {
762
762
std::vector<Local<Value>> name_v;
763
763
std::vector<Local<Value>> type_v;
764
764
765
- for (int i = 0 ; ; i++ ) {
765
+ for (;; ) {
766
766
uv_dirent_t ent;
767
767
768
768
r = uv_fs_scandir_next (req, &ent);
You can’t perform that action at this time.
0 commit comments