From 73fc0dc2439355c6a711e455cbecd1da9c169aa7 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sat, 29 Jul 2023 18:06:34 +0100 Subject: [PATCH] remove unnecessary assignments --- lib/voicemeeter/bus.rb | 3 +-- lib/voicemeeter/strip.rb | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/voicemeeter/bus.rb b/lib/voicemeeter/bus.rb index 5c32c06..deee6f8 100644 --- a/lib/voicemeeter/bus.rb +++ b/lib/voicemeeter/bus.rb @@ -13,8 +13,7 @@ module Voicemeeter attr_reader :eq, :mode, :levels def self.make(remote, i) - p_out = remote.kind.phys_out - (i < p_out) ? PhysicalBus.new(remote, i) : VirtualBus.new(remote, i) + (i < remote.kind.phys_out) ? PhysicalBus.new(remote, i) : VirtualBus.new(remote, i) end def initialize(remote, i) diff --git a/lib/voicemeeter/strip.rb b/lib/voicemeeter/strip.rb index fed083a..d5b5680 100644 --- a/lib/voicemeeter/strip.rb +++ b/lib/voicemeeter/strip.rb @@ -13,8 +13,7 @@ module Voicemeeter attr_reader :gainlayer, :levels def self.make(remote, i) - p_in = remote.kind.phys_in - (i < p_in) ? PhysicalStrip.new(remote, i) : VirtualStrip.new(remote, i) + (i < remote.kind.phys_in) ? PhysicalStrip.new(remote, i) : VirtualStrip.new(remote, i) end def initialize(remote, i)