lib/cc/analyzer/location_description.rb in codeclimate-0.85.24 vs lib/cc/analyzer/location_description.rb in codeclimate-0.85.25
- old
+ new
@@ -32,14 +32,10 @@
"#{begin_line}-#{end_line}"
end
end
def position_to_line(position)
- if position["line"]
- position["line"]
- else
- @source_buffer.decompose_position(position["offset"]).first
- end
+ position["line"] || @source_buffer.decompose_position(position["offset"]).first
end
end
end
end