From 9c3ead98ddfc919f93e167d2f16abaad457026f2 Mon Sep 17 00:00:00 2001 From: Anurag Date: Wed, 2 Aug 2023 14:58:24 +0530 Subject: [PATCH] fix linter --- dgraphtest/local_cluster.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dgraphtest/local_cluster.go b/dgraphtest/local_cluster.go index e0e5c113312..70797afc2c3 100644 --- a/dgraphtest/local_cluster.go +++ b/dgraphtest/local_cluster.go @@ -782,8 +782,9 @@ func (c *LocalCluster) checkDgraphVersion(containerID string) error { return errors.Wrapf(err, "error during checkDgraphVersion for container [%v]", containerID) } - // During in-place upgrade, container remains same but logs have version string twice - once for old version, once for new. - // Want new version string. Look bottom-up using LastIndex to get latest version's string. + // During in-place upgrade, container remains same but logs have version string twice + // once for old version, once for new. Want new version string. Look bottom-up using + // LastIndex to get latest version's string. index := strings.LastIndex(contLogs, "Commit SHA-1 : ") running := strings.Fields(contLogs[index : index+70])[3] // 70 is arbitrary chash, err := getHash(c.GetVersion())