Return style change per PR feedback

This commit is contained in:
Steve Streeting 2017-01-09 12:08:51 +00:00
parent 3652681458
commit 0b12dfde1b

@ -105,7 +105,11 @@ func (c *Client) LockFile(path string) (Lock, error) {
}
// Ensure writeable on return
return lock, tools.SetFileWriteFlag(path, true)
if err := tools.SetFileWriteFlag(path, true); err != nil {
return Lock{}, err
}
return lock, nil
}
// UnlockFile attempts to unlock a file on the current remote