lib/ratis/config.rb in ratis-3.4.3 vs lib/ratis/config.rb in ratis-3.5.0

- old
+ new

@@ -1,14 +1,12 @@ module Ratis class Config - attr_accessor :endpoint, :namespace, :proxy, :timeout, :log, :log_level + attr_accessor :appid, :endpoint, :log, :log_level, :namespace, :proxy, :timeout def valid? - return false if endpoint.nil? or namespace.nil? - return false if endpoint.empty? or namespace.empty? - true + !(endpoint.nil? || endpoint.empty? || namespace.nil? || namespace.empty? || appid.nil? || appid.empty?) end private def initialize