From f8d1fd9290d655ac0f49bdb56ef5981a8f3e352d Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Sat, 2 Apr 2022 22:56:38 +0200 Subject: [PATCH] avoid variables in an unscoped case --- test/uvw/fs_req.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/uvw/fs_req.cpp b/test/uvw/fs_req.cpp index 2b359529..b776d1ec 100644 --- a/test/uvw/fs_req.cpp +++ b/test/uvw/fs_req.cpp @@ -787,9 +787,7 @@ TEST(FsReq, Chown) { checkFsChownEvent = true; break; case uvw::fs_req::fs_type::STAT: - auto uid = static_cast(event.stat.st_uid); - auto gid = static_cast(event.stat.st_gid); - req.chown(filename, uid, gid); + req.chown(filename, static_cast(event.stat.st_uid), static_cast(event.stat.st_gid)); break; default: // nothing to do here @@ -859,9 +857,7 @@ TEST(FsReq, Lchown) { checkFsLChownEvent = true; break; case uvw::fs_req::fs_type::STAT: - auto uid = static_cast(event.stat.st_uid); - auto gid = static_cast(event.stat.st_gid); - req.lchown(filename, uid, gid); + req.lchown(filename, static_cast(event.stat.st_uid), static_cast(event.stat.st_gid)); break; default: // nothing to do here