From e07d00782a281f6b87dd0fb59a45f27663a6969b Mon Sep 17 00:00:00 2001 From: Calvin Nix Date: Wed, 21 Feb 2024 09:13:34 -0500 Subject: [PATCH] another area to clean up if condition --- vm.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vm.go b/vm.go index d417280f..344f2eaa 100644 --- a/vm.go +++ b/vm.go @@ -624,8 +624,7 @@ func (vm *vm) run() { panic("failed to make reservation") } - delay := r.DelayFrom(now) - if delay > 0 { + if delay := r.DelayFrom(now); delay > 0 { vm.r.limiterWaitCount++ vm.r.limiterWaitTotalTime += delay