From c3d484a85efd1f76bc11cc07e1acd23584a1efd0 Mon Sep 17 00:00:00 2001 From: nishiki Date: Sat, 6 Dec 2014 16:25:03 +0100 Subject: [PATCH] fix a bug --- lib/Sync/MPWSync.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sync/MPWSync.rb b/lib/Sync/MPWSync.rb index 1a9f7b6..ee0d6cb 100644 --- a/lib/Sync/MPWSync.rb +++ b/lib/Sync/MPWSync.rb @@ -33,7 +33,7 @@ module MPW # @rtrn: false if the connection fail def connect(host, user, password, path, port=nil) @host = host - @port = not port.instance_of?(Integer) ? 2201 : port + @port = !port.instance_of?(Integer) ? 2201 : port @gpg_key = user @password = password @suffix = path