From ef6dac2bfe9dea0f454239e2090d1cf3e91ee869 Mon Sep 17 00:00:00 2001 From: HuKeping Date: Wed, 13 Apr 2016 22:00:36 +0800 Subject: [PATCH] Update code comments Change to a more readable format. Signed-off-by: Hu Keping --- certs/certs.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/certs/certs.go b/certs/certs.go index 4b81543b3e..8d3aba2d3b 100644 --- a/certs/certs.go +++ b/certs/certs.go @@ -123,9 +123,10 @@ func ValidateRoot(certStore trustmanager.X509Store, root *data.Signed, gun strin return &ErrValidationFail{Reason: "failed to validate integrity of roots"} } - // Getting here means A) we had trusted certificates and both the - // old and new validated this root; or B) we had no trusted certificates but - // the new set of certificates has integrity (self-signed) + // Getting here means: + // A) we had trusted certificates and both the old and new validated this root. + // or + // B) we had no trusted certificates but the new set of certificates has integrity (self-signed). logrus.Debugf("entering root certificate rotation for: %s", gun) // Do root certificate rotation: we trust only the certs present in the new root