Skip to content

Commit

Permalink
Update src/api/IBMi.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Sébastien Julliand <sebjulliand@gmail.com>
  • Loading branch information
worksofliam and sebjulliand authored Jan 15, 2025
1 parent 1953ac7 commit 59e8e88
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/api/IBMi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1320,16 +1320,7 @@ export default class IBMi {
}

getIAspName(by: string|number): string|undefined {
let asp: AspInfo|undefined;
if (typeof by === 'string') {
asp = this.iAspInfo.find(asp => asp.name === by);
} else {
asp = this.iAspInfo.find(asp => asp.id === by);
}

if (asp) {
return asp.name;
}
return getIAspDetail(by)?.name;
}

getCurrentIAspName() {
Expand Down

0 comments on commit 59e8e88

Please sign in to comment.