From 7c02a230dc970c2946770f6893e35c627b6b1ec0 Mon Sep 17 00:00:00 2001 From: Wild Kat Date: Wed, 12 Sep 2018 11:23:45 +0200 Subject: add a new line after guard clauses for better visual flow (#1520) --- lib/oxidized/node.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/oxidized/node.rb') diff --git a/lib/oxidized/node.rb b/lib/oxidized/node.rb index 3775fa9..1d119e4 100644 --- a/lib/oxidized/node.rb +++ b/lib/oxidized/node.rb @@ -39,6 +39,7 @@ module Oxidized # don't try input if model is missing config block, we may need strong config to class_name map cfg_name = input.to_s.split('::').last.downcase next unless @model.cfg[cfg_name] and not @model.cfg[cfg_name].empty? + @model.input = input = input.new if config = run_input(input) Oxidized.logger.debug "lib/oxidized/node.rb: #{input.class.name} ran for #{name} successfully" @@ -229,6 +230,7 @@ module Oxidized def git_type opt type = opt[:output] || Oxidized.config.output.default return nil unless type[0..2] == "git" + type end end -- cgit v1.2.1