diff --git a/src/sftp/file.cr b/src/sftp/file.cr index 5525bfd..8d5a27c 100644 --- a/src/sftp/file.cr +++ b/src/sftp/file.cr @@ -12,8 +12,7 @@ module SSH2::SFTP end def seek(offset) - ret = LibSSH2.sftp_seek(self, offset.to_u64) - check_error(ret) + LibSSH2.sftp_seek(self, offset.to_u64) end def rewind