From fae4d26e190985f43d9ed80fe24b35f073b02d3d Mon Sep 17 00:00:00 2001 From: Andrew Crump Date: Wed, 24 Jul 2013 23:31:08 +0100 Subject: [PATCH] Correct formatting. --- lib/foodcritic/api.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/foodcritic/api.rb b/lib/foodcritic/api.rb index 2d7ab343..b9c0605a 100644 --- a/lib/foodcritic/api.rb +++ b/lib/foodcritic/api.rb @@ -459,17 +459,17 @@ def standard_attribute_access(ast, options) end.inject(:+) else type = if options[:type] == :string - 'tstring_content' - else - '*[self::symbol or self::dyna_symbol]' - end + 'tstring_content' + else + '*[self::symbol or self::dyna_symbol]' + end expr = '//*[self::aref_field or self::aref][count(method_add_arg) = 0]' expr += '[count(is_att_type(descendant::var_ref/ident/@value)) = count(descendant::var_ref/ident/@value)]' expr += '[is_att_type(descendant::ident' expr += '[not(ancestor::aref/call)]' if options[:ignore_calls] expr += "/@value)]/descendant::#{type}" - if options[:type] == :string + if options[:type] == :string expr += '[count(ancestor::dyna_symbol) = 0]' end ast.xpath(expr, AttFilter.new).sort