Skip to content

Commit

Permalink
Fixed Linting
Browse files Browse the repository at this point in the history
Signed-off-by: Likhitha Nimma <Likhitha.Nimma@ibm.com>
  • Loading branch information
likhithanimma1 committed Sep 30, 2023
1 parent 5afd103 commit 9a013ed
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/zowe-explorer-api/src/profiles/ProfilesCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,10 @@ export class ProfilesCache {

public addToConfigArray(extendermetadata: zowe.imperative.ICommandProfileTypeConfiguration[]): void {
extendermetadata?.forEach((item) => {
let index = this.profileTypeConfigurations.findIndex((ele) => ele.type == item.type)
if(index!=-1){
const index = this.profileTypeConfigurations.findIndex((ele) => ele.type == item.type);
if (index !== -1) {
this.profileTypeConfigurations[index] = item;
}
else{
} else {
this.profileTypeConfigurations.push(item);
}
});
Expand Down

0 comments on commit 9a013ed

Please sign in to comment.