minor syntax changes

This commit is contained in:
2023-07-28 19:05:28 +01:00
parent e4f4961c56
commit 86b84aeef9
2 changed files with 3 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ module OBSWS
end
def add_observer(observer)
observer = [observer] if !observer.respond_to? :each
observer = [observer] unless observer.respond_to? :each
observer.each { |o| observers << o unless observers.include? o }
end