From 13f99f53c3b614045ad504a00c6146bb8b806bd0 Mon Sep 17 00:00:00 2001 From: donghee yang Date: Wed, 3 Apr 2013 11:06:17 +0900 Subject: [PATCH] [Tiutle] Remove warning for using brace --- src/common/PropertyParser.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/PropertyParser.rb b/src/common/PropertyParser.rb index b383ff2..a620f9d 100644 --- a/src/common/PropertyParser.rb +++ b/src/common/PropertyParser.rb @@ -2,9 +2,9 @@ require 'model/Property' class PropertyParser - attr_accessor (:seperate) + attr_accessor :seperate def initialize(seperate) - if (seperate.nil?()) + if seperate.nil? then @seperate = ":"; else @seperate = seperate; @@ -18,7 +18,7 @@ class PropertyParser f = File.open(filePath,"r"); f.each_line do |line| - if (line.empty? || line.eql?("\n")) then + if line.empty? || line.eql?("\n") then if not properties.empty?() then propertySection.push(properties); properties = Array.new @@ -36,4 +36,4 @@ class PropertyParser return propertySection; end -end \ No newline at end of file +end -- 2.34.1