From cd47d6b7a244b4232c15eb2ecfa2f7c5da85876a Mon Sep 17 00:00:00 2001 From: Adele Reed Date: Mon, 21 Oct 2024 15:00:23 -0700 Subject: [PATCH] lint --- ste/mgr-JobPartTransferMgr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ste/mgr-JobPartTransferMgr.go b/ste/mgr-JobPartTransferMgr.go index ec8390e6c..d0bb3e855 100644 --- a/ste/mgr-JobPartTransferMgr.go +++ b/ste/mgr-JobPartTransferMgr.go @@ -858,7 +858,7 @@ func (jptm *jobPartTransferMgr) failActiveTransfer(typ transferErrorCode, descri !jptm.jobPartMgr.(*jobPartMgr).jobMgr.IsDaemon() { // quit right away, since without proper authentication no work can be done // display a clear message - if strings.Index(descriptionOfWhereErrorOccurred, "tags") != -1 { + if strings.Contains(descriptionOfWhereErrorOccurred, "tags") { common.GetLifecycleMgr().Info(fmt.Sprintf("Authorization failed during an attempt to set tags, please ensure you have the appropriate Tags permission %s", err.Error())) } else { common.GetLifecycleMgr().Info(fmt.Sprintf("Authentication failed, it is either not correct, or expired, or does not have the correct permission %s", err.Error()))