Commit ded9a6e3 authored by Girish Ramakrishnan's avatar Girish Ramakrishnan

Revert "remove unused function"

This reverts commit a19205e3.
parent ea205363
......@@ -305,6 +305,14 @@ function validateRobotsTxt(robotsTxt) {
return null;
function validateBackupFormat(format) {
assert.strictEqual(typeof format, 'string');
if (format === 'tgz' || format == 'rsync') return null;
return new AppsError(AppsError.BAD_FIELD, 'Invalid backup format');
function validateLabel(label) {
if (label === null) return null;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment