Skip to content

Commit

Permalink
fixes linter messages (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
fr43nk authored Mar 22, 2023
1 parent 9224b26 commit f9e4230
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ccScmProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion src/clearcase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit f9e4230

Please sign in to comment.