check static method

void check(
  1. SftpStatusPacket status
)

Implementation

static void check(SftpStatusPacket status) {
  if (status.code != SftpStatusCode.ok && status.code != SftpStatusCode.eof) {
    throw SftpStatusError.fromStatus(status);
  }
}