From 83f935dc21affca1ca636e7ab3a3c12d0d520166 Mon Sep 17 00:00:00 2001 From: nishiki Date: Wed, 29 Jan 2014 23:10:35 +0100 Subject: [PATCH] beautiful code --- MPW/Sync/MPW.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MPW/Sync/MPW.rb b/MPW/Sync/MPW.rb index 054fa28..14a43c5 100644 --- a/MPW/Sync/MPW.rb +++ b/MPW/Sync/MPW.rb @@ -18,7 +18,7 @@ module MPW attr_accessor :enable # Constructor - def initialize() + def initialize @error_msg = nil @enable = false end @@ -113,7 +113,7 @@ module MPW end # Close the connection - def close() + def close if !@enable return end