Skip to content

Commit

Permalink
Codereview Patrik
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan-Thurner committed Aug 21, 2024
1 parent 5c63f20 commit d78ed06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ String buildComparableRestCallUri() {

// Remove query parameters
result = result.split("\\?")[0];

// Some URIs in the artemis client start with a redundant `/`. To be able to compare them to the endpoint URIs, we remove it.
if (result.startsWith("/")) {
result = result.substring(1);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class Postprocessor {
private readonly ast: TSESTree.Program;

/**
* @param filePath - The name of the file being processed.
* @param filePath - The path of the file being processed.
* @param ast - The abstract syntax tree (AST) of the processed file.
*/
constructor(filePath: string, ast: TSESTree.Program) {
Expand All @@ -61,7 +61,7 @@ export class Postprocessor {
}
});
if (this.restCalls.length > 0) {
Postprocessor.filesWithRestCalls.push( {filePath: this.filePath, restCalls: this.restCalls} );
Postprocessor.filesWithRestCalls.push({ filePath: this.filePath, restCalls: this.restCalls });
}
}

Expand Down Expand Up @@ -111,7 +111,7 @@ export class Postprocessor {
const filePath = this.filePath;
if (urlEvaluationResult.resultType === ParsingResultType.EVALUATE_URL_SUCCESS) {
for (const url of urlEvaluationResult.result) {
this.restCalls.push({ method, url, line, filePath: filePath });
this.restCalls.push({ method, url, line, filePath });
}
}
}
Expand Down

0 comments on commit d78ed06

Please sign in to comment.