Skip to content

Commit 8f5c769

Browse files
authored
Format files (#88)
Using Reason 3.3.7 @ 43efc14 Needed this before we do auto refactors later, to avoid reviewing excessive whitespaces
1 parent ecc4c7a commit 8f5c769

12 files changed

+205
-162
lines changed

src/rescript-editor-support/BasicServer.re

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,10 @@ let canRead = desc => {
9090
};
9191

9292
let run =
93-
(
94-
~messageHandlers,
95-
~notificationHandlers,
96-
~getInitialState,
97-
~capabilities,
98-
) => {
93+
(~messageHandlers, ~notificationHandlers, ~getInitialState, ~capabilities) => {
9994
let stdin_descr = Unix.descr_of_in_channel(stdin);
10095

101-
let rec loop = (~isShuttingDown, state) => {
96+
let rec loop = (~isShuttingDown, state) =>
10297
if (canRead(stdin_descr)) {
10398
switch (Rpc.readMessage(stdin)) {
10499
| Message(id, "shutdown", _params) =>
@@ -126,7 +121,6 @@ let run =
126121
} else {
127122
loop(~isShuttingDown, state);
128123
};
129-
};
130124

131125
let initialize = () =>
132126
switch (Rpc.readMessage(stdin)) {

src/rescript-editor-support/BuildSystem.re

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ let getBsPlatformDir = rootPath => {
1414
);
1515
let result =
1616
if (result == None) {
17-
ModuleResolution.resolveNodeModulePath(
18-
~startPath=rootPath,
19-
"rescript",
20-
);
17+
ModuleResolution.resolveNodeModulePath(~startPath=rootPath, "rescript");
2118
} else {
2219
result;
2320
};

src/rescript-editor-support/Files.re

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ let relpath = (base, path) =>
5252
};
5353

5454
let maybeStat = path =>
55-
try(Some(Unix.stat(path))) {
55+
try (Some(Unix.stat(path))) {
5656
| Unix.Unix_error(Unix.ENOENT, _, _) => None
5757
};
5858

@@ -100,7 +100,7 @@ let ifExists = path => exists(path) ? Some(path) : None;
100100

101101
let readDirectory = dir => {
102102
let maybeGet = handle =>
103-
try(Some(Unix.readdir(handle))) {
103+
try (Some(Unix.readdir(handle))) {
104104
| End_of_file => None
105105
};
106106
let rec loop = handle =>

src/rescript-editor-support/FindFiles.re

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ let filterDuplicates = cmts => {
8989
}
9090
);
9191
cmts
92-
|> List.filter(path => {
92+
|> List.filter(path =>
9393
!(
9494
(
9595
Filename.check_suffix(path, ".re")
@@ -98,7 +98,7 @@ let filterDuplicates = cmts => {
9898
)
9999
&& Hashtbl.mem(intfs, getName(path))
100100
)
101-
});
101+
);
102102
};
103103

104104
let nameSpaceToName = n =>

src/rescript-editor-support/JsonShort.re

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
open Json;
32
let o = o => Object(o);
43
let s = s => String(s);

0 commit comments

Comments
 (0)