[Tiutle] Remove warning for using brace
authordonghee yang <donghee.yang@samsung.com>
Wed, 3 Apr 2013 02:06:17 +0000 (11:06 +0900)
committerdonghee yang <donghee.yang@samsung.com>
Wed, 3 Apr 2013 02:06:17 +0000 (11:06 +0900)
src/common/PropertyParser.rb

index b383ff29671b26125db537282731d18d6d813bb8..a620f9d35ae5ca6c13bf4bd88ff465abbe5df104 100644 (file)
@@ -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