mirror of
https://github.com/google/nomulus.git
synced 2025-05-17 17:59:41 +02:00
Remove an unused exception
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=146259756
This commit is contained in:
parent
636da9f7f0
commit
b35ffd4162
1 changed files with 1 additions and 2 deletions
|
@ -18,7 +18,6 @@ import static com.google.common.base.Preconditions.checkState;
|
||||||
|
|
||||||
import google.registry.util.NetworkUtils;
|
import google.registry.util.NetworkUtils;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
import org.apache.ftpserver.FtpServer;
|
import org.apache.ftpserver.FtpServer;
|
||||||
import org.apache.ftpserver.ftplet.FtpException;
|
import org.apache.ftpserver.ftplet.FtpException;
|
||||||
|
@ -39,7 +38,7 @@ public final class SftpServerRule extends ExternalResource {
|
||||||
*
|
*
|
||||||
* @return the port on which the server is listening
|
* @return the port on which the server is listening
|
||||||
*/
|
*/
|
||||||
public int serve(String user, String pass, File home) throws IOException, FtpException {
|
public int serve(String user, String pass, File home) throws FtpException {
|
||||||
checkState(server == null, "You already have an SFTP server!");
|
checkState(server == null, "You already have an SFTP server!");
|
||||||
int port = NetworkUtils.pickUnusedPort();
|
int port = NetworkUtils.pickUnusedPort();
|
||||||
server = createSftpServer(user, pass, home, port);
|
server = createSftpServer(user, pass, home, port);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue