mirror of
https://github.com/google/nomulus
synced 2026-04-14 13:37:25 +00:00
Remove an unused exception
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=146259756
This commit is contained in:
@@ -18,7 +18,6 @@ import static com.google.common.base.Preconditions.checkState;
|
||||
|
||||
import google.registry.util.NetworkUtils;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import javax.annotation.Nullable;
|
||||
import org.apache.ftpserver.FtpServer;
|
||||
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
|
||||
*/
|
||||
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!");
|
||||
int port = NetworkUtils.pickUnusedPort();
|
||||
server = createSftpServer(user, pass, home, port);
|
||||
|
||||
Reference in New Issue
Block a user