Fix warnings nits from RegistrarAction rename

([]

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=137833414
This commit is contained in:
ctingue 2016-11-01 09:38:30 -07:00 committed by Ben McIlwain
parent a244202267
commit 83cbf5a01f
4 changed files with 5 additions and 16 deletions

View file

@ -110,7 +110,7 @@ public class RegistrarSettingsAction implements Runnable, JsonActionRunner.JsonA
case "update":
return update(args, initialRegistrar);
case "read":
return read(args, initialRegistrar);
return JsonResponseHelper.create(SUCCESS, "Success", initialRegistrar.toJsonMap());
default:
return JsonResponseHelper.create(ERROR, "Unknown or unsupported operation: " + op);
}
@ -293,10 +293,6 @@ public class RegistrarSettingsAction implements Runnable, JsonActionRunner.JsonA
}
}
public Map<String, Object> read(Map<String, ?> args, Registrar registrar) {
return JsonResponseHelper.create(SUCCESS, "Success", registrar.toJsonMap());
}
/** Thrown when a set of contacts doesn't meet certain constraints. */
private static class ContactRequirementException extends FormException {
ContactRequirementException(String msg) {