Skip to content

Commit

Permalink
Fix miscellaneous Sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fourls authored and Cirras committed Apr 21, 2024
1 parent 8f8b8ed commit a27375e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/source/DelphiLint.Data.pas
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ constructor TLintIssue.CreateFromJson(Json: TJSONObject);

MetadataJson := Json.GetValue<TJSONValue>('metadata', nil);
if Assigned(MetadataJson) and (MetadataJson is TJSONObject) then begin
FMetadata := TIssueMetadata.CreateFromJson(MetadataJson as TJSONObject);;
FMetadata := TIssueMetadata.CreateFromJson(MetadataJson as TJSONObject);
end;
end;

Expand Down
2 changes: 1 addition & 1 deletion client/source/DelphiLint.Utils.pas
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ function GetDelphiVersion: string;

// General utils
function TimeSpanToAgoString(TimeSpan: TTimeSpan): string;

type
TArrayUtils = class(TObject)
public
Expand All @@ -55,7 +56,6 @@ TArrayUtils = class(TObject)
class function Max<X>(Arr: TArray<X>; DefaultValue: X): X; overload; static;
end;

type
TWrapper<T> = class(TObject)
private
FRaw: T;
Expand Down
1 change: 1 addition & 0 deletions companion/delphilint-vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export function activate(context: vscode.ExtensionContext) {
"delphilint-vscode.clearThisFile",
() => clearThisFile(lintIssueCollection)
);
context.subscriptions.push(clearThisFileCommand);

const chooseActiveProjectCommand = vscode.commands.registerCommand(
"delphilint-vscode.chooseActiveProject",
Expand Down

0 comments on commit a27375e

Please sign in to comment.