RefUpdateUtil: Fix warning about missing case labels

Change-Id: I35a7632fd98863dc88476e311030f079f1f78011
This commit is contained in:
David Ostrovsky
2018-11-15 08:41:53 -08:00
committed by David Ostrovsky
parent 0c8c1c2771
commit dec7a8e363

View File

@@ -125,6 +125,11 @@ public class RefUpdateUtil {
case LOCK_FAILURE:
throw new LockFailureException("Failed to update " + ru.getName() + ": " + result, ru);
default:
case IO_FAILURE:
case REJECTED:
case REJECTED_CURRENT_BRANCH:
case REJECTED_MISSING_OBJECT:
case REJECTED_OTHER_REASON:
throw new IOException("Failed to update " + ru.getName() + ": " + ru.getResult());
}
}