1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2025-02-17 08:30:04 +00:00

fix a bug

This commit is contained in:
nishiki 2014-12-06 16:25:03 +01:00
parent a055925866
commit c3d484a85e

View file

@ -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