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

Commit c8f4fd3

Browse files
committed
chore: remove unneeded trailing whitespace
1 parent 61657ef commit c8f4fd3

File tree

7 files changed

+23
-23
lines changed

7 files changed

+23
-23
lines changed

Elixir.iss

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ begin
105105
106106
if Pos('elixirpath', SelTaskString) <> 0 then
107107
DeletePath(ExpandConstant('{#ELIXIR_PATH}'));
108-
108+
109109
if Pos('escriptpath', SelTaskString) <> 0 then
110110
DeletePath(ExpandConstant('{#ESCRIPT_PATH}'));
111111
end;
@@ -120,7 +120,7 @@ begin
120120
'Setup will configure Elixir to use the following Erlang installation path.',
121121
False, ''
122122
);
123-
123+
124124
GlobalPageErlangDir.Add('');
125125
GlobalPageErlangDir.Values[0] := GetLatestErlangPath();
126126
end;

ElixirWeb.iss

+14-14
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ var
105105
GlobalErlangCSVFilePath: String;
106106
107107
CacheSelectedRelease: TElixirRelease;
108-
108+
109109
function GetScriptString(Param: String): String;
110110
begin
111111
Result := '';
112-
112+
113113
case (Param) of
114114
'ErlangExe32': Result := GlobalErlangData.Exe32;
115115
'ErlangExe64': Result := GlobalErlangData.Exe64;
@@ -127,7 +127,7 @@ var
127127
begin
128128
if CurPageID = wpPreparing then begin
129129
// We're on the page after the "Ready To Install" page but before [Files] and [Run] are processed
130-
130+
131131
if IsTaskSelected('unins_previous') then
132132
ExecAsOriginalUser(GetPreviousUninsExe, '/SILENT', '', SW_SHOW, ewWaitUntilTerminated, _int);
133133
@@ -139,10 +139,10 @@ begin
139139
// 64-bit OTP needs to be downloaded before it's installed
140140
idpAddFile(URL64, Tmp(Exe64));
141141
end;
142-
142+
143143
// Download the Precompiled.zip archive for the selected release
144144
idpAddFile(CacheSelectedRelease.URL, Tmp('Precompiled.zip'));
145-
145+
146146
// Put the downloader page directly after this page
147147
idpDownloadAfter(wpPreparing);
148148
end;
@@ -154,7 +154,7 @@ var
154154
RefMatch: TObject;
155155
begin
156156
Result := True;
157-
157+
158158
// Search for the selected release
159159
if CurPageID = GlobalPageSelRelease.ID then begin
160160
for i := 0 to GlobalPageSelRelease.CheckListBox.Items.Count - 1 do begin
@@ -179,9 +179,9 @@ begin
179179
'All releases available to install are listed below, from newest to oldest.',
180180
True, True // (Use Radio Buttons), (Put them in a scrollable list box)
181181
);
182-
182+
183183
latest := True;
184-
184+
185185
// Use the global Elixir release array to populate the custom Elixir release list box
186186
for i := 0 to GetArrayLength(GlobalElixirReleases) - 1 do begin
187187
with GlobalElixirReleases[i] do begin
@@ -193,7 +193,7 @@ begin
193193
(ReleaseType <> 'incompatible'), // Incompatible releases can't be selected
194194
Nil
195195
);
196-
196+
197197
if ReleaseType = 'release' then
198198
latest := False;
199199
end
@@ -203,7 +203,7 @@ end;
203203
function InitializeSetup(): Boolean;
204204
begin
205205
Result := True;
206-
206+
207207
// Store the paths to elixir.csv, erlang.csv in global variables
208208
GlobalElixirCSVFilePath := Tmp(GetURLFilePart('{#ELIXIR_CSV_URL}'));
209209
GlobalErlangCSVFilePath := Tmp(GetURLFilePart('{#ERLANG_CSV_URL}'));
@@ -220,20 +220,20 @@ begin
220220
Result := False;
221221
exit;
222222
end;
223-
223+
224224
// Create an array of TElixirRelease records from elixir.csv and store them in a global variable
225225
GlobalElixirReleases := CSVToElixirReleases(GlobalElixirCSVFilePath);
226-
226+
227227
// Check if above didn't work
228228
if GetArrayLength(GlobalElixirReleases) = 0 then begin
229229
MsgBox('Error: Parsing {#ELIXIR_CSV_URL} failed. Setup cannot continue.', mbInformation, MB_OK);
230230
Result := False;
231231
exit;
232232
end;
233-
233+
234234
// Create an TErlangData from erlang.csv record and store it in a global variable
235235
GlobalErlangData := CSVToErlangData(GlobalErlangCSVFilePath);
236-
236+
237237
// Check if above didn't work
238238
if GlobalErlangData.OTPVersion = '' then begin
239239
MsgBox('Error: Parsing {#ERLANG_CSV_URL} failed. Setup cannot continue.', mbInformation, MB_OK);

src/ElixirInstall.iss

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ begin
2626
end else if RegQueryStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Elixir_is1', 'UninstallString', UninsPath) then begin
2727
Result := RemoveQuotes(UninsPath);
2828
end else if RegQueryStringValue(HKCU, 'Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Elixir_is1', 'UninstallString', UninsPath) then begin
29-
Result := RemoveQuotes(UninsPath);
29+
Result := RemoveQuotes(UninsPath);
3030
end else if RegQueryStringValue(HKCU, 'Software\Microsoft\Windows\CurrentVersion\Uninstall\Elixir_is1', 'UninstallString', UninsPath) then begin
3131
Result := RemoveQuotes(UninsPath);
32-
end;
32+
end;
3333
end;
3434
3535
function GetPreviousAppPath: String;

src/Path.iss

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
const
1919
PathVarRegRoot = HKEY_LOCAL_MACHINE;
2020
PathVarRegPath = 'SYSTEM\CurrentControlSet\Control\Session Manager\Environment';
21-
21+
2222
function ContainsPath(Dir: String): Boolean;
2323
var
2424
RegValue: String;

src/TElixirRelease.iss

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ function CSVToElixirReleases(Filename: String): array of TElixirRelease;
2828
var
2929
Rows: TArrayOfString;
3030
RowValues: TStrings;
31-
i: Integer;
31+
i: Integer;
3232
begin
3333
// Read the file at Filename and store the lines in Rows
34-
if LoadStringsFromFile(Filename, Rows) then begin
34+
if LoadStringsFromFile(Filename, Rows) then begin
3535
// Match length of return array to number of rows
3636
SetArrayLength(Result, GetArrayLength(Rows) - 1);
3737

src/TErlangData.iss

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
[Code]
1717
18-
type
18+
type
1919
TErlangData = record
2020
OTPVersion: String;
2121
ERTSVersion: String;

src/Util.iss

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ begin
3737
StrTail := Str;
3838
3939
Delete(StrHead, DelimPos, Length(StrTail));
40-
Delete(StrTail, 1, DelimPos);
40+
Delete(StrTail, 1, DelimPos);
4141
4242
StrList.Add(StrHead);
4343
Result := SplitStringRec(StrTail, Delim, StrList);

0 commit comments

Comments
 (0)