Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit 151fc25

Browse files
committed
Correct handling of nil values
1 parent a974afd commit 151fc25

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ElixirWeb.iss

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ begin
214214
ReleaseType := rtIncompatible;
215215
end;
216216
217-
if Ref = Null then
217+
if Ref = nil then
218218
Ref := TObject.Create();
219219
end;
220220
end;
@@ -306,7 +306,6 @@ function GetFirstReleaseOfType(Releases: array of TElixirRelease; ReleaseType: T
306306
var
307307
i: Integer;
308308
begin
309-
Result := Null;
310309
for i := 0 to GetArrayLength(Releases) - 1 do begin
311310
if Releases[i].ReleaseType = ReleaseType then begin
312311
Result := Releases[i];
@@ -367,16 +366,14 @@ end;
367366
function ShouldSkipPage(PageID: Integer): Boolean;
368367
begin
369368
if PageID = GlobalPageSelRelease.ID then begin
370-
Result := not (GlobalPageSelInstallType.CheckListBox.ItemObject[GlobalPageSelInstallType.SelectedValueIndex] = Null);
369+
Result := not (GlobalPageSelInstallType.CheckListBox.ItemObject[GlobalPageSelInstallType.SelectedValueIndex] = nil);
371370
end else begin
372371
Result := False;
373372
end;
374373
end;
375374
376375
procedure InitializeWizard();
377376
begin
378-
CacheSelectedRelease := Null;
379-
380377
GlobalPageSelInstallType := CreateInputOptionPage(
381378
wpWelcome,
382379
'Select Elixir installation type',

0 commit comments

Comments
 (0)