From f9e4230f9193e42f409f0c8a62a9516517ca13cc Mon Sep 17 00:00:00 2001 From: Frank Date: Wed, 22 Mar 2023 13:59:55 +0100 Subject: [PATCH] fixes linter messages (#144) --- src/ccScmProvider.ts | 2 +- src/clearcase.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ccScmProvider.ts b/src/ccScmProvider.ts index b4a4e47..0be094f 100644 --- a/src/ccScmProvider.ts +++ b/src/ccScmProvider.ts @@ -229,7 +229,7 @@ export class CCScmProvider implements IDisposable { checkoutsChanged = true; } // file has no version information, so it is view private - if (version.indexOf("private") !== -1 && this.clearCase !== null) { + if (version.includes("private") && this.clearCase !== null) { if (this.clearCase.untrackedList.exists(fileObj.fsPath) === false) { this.clearCase.untrackedList.addString(fileObj.fsPath); this.mContext.workspaceState.update("untrackedfilecache", this.clearCase.untrackedList.stringify()); diff --git a/src/clearcase.ts b/src/clearcase.ts index 2a5ce77..8274ca3 100644 --- a/src/clearcase.ts +++ b/src/clearcase.ts @@ -615,7 +615,7 @@ export class ClearCase { const res = iFileInfo.replace(/"/g, '').split("||"); if (res.length > 1 && res[0] === "version") { return normalize ? res[1].replace(/\\/g, "/").trim() : res[1].trim(); - } else if( res[0].indexOf("private") !== -1 ) { + } else if( res[0].includes("private") ) { return res[0]; } else { return "not in a VOB";