aboutsummaryrefslogtreecommitdiff
path: root/2022/20-Grove-Positioning-System
diff options
context:
space:
mode:
authorJulien Dessaux2022-12-31 17:04:04 +0100
committerJulien Dessaux2022-12-31 17:33:31 +0100
commit7a7a788a11c0f6508837a32c4332545870eca653 (patch)
tree9935c154ae6ba2f10dc55fa95e919f5a1628ee67 /2022/20-Grove-Positioning-System
parent2022-20 in js (diff)
downloadadvent-of-code-7a7a788a11c0f6508837a32c4332545870eca653.tar.gz
advent-of-code-7a7a788a11c0f6508837a32c4332545870eca653.tar.bz2
advent-of-code-7a7a788a11c0f6508837a32c4332545870eca653.zip
2022-21 part 1 in js
Diffstat (limited to '2022/20-Grove-Positioning-System')
-rw-r--r--2022/20-Grove-Positioning-System/first.js6
-rw-r--r--2022/20-Grove-Positioning-System/second.js6
2 files changed, 6 insertions, 6 deletions
diff --git a/2022/20-Grove-Positioning-System/first.js b/2022/20-Grove-Positioning-System/first.js
index 7a49d57..c2f351a 100644
--- a/2022/20-Grove-Positioning-System/first.js
+++ b/2022/20-Grove-Positioning-System/first.js
@@ -65,9 +65,9 @@ class File {
function load(filename) {
return new File(
fs.readFileSync(filename, "utf8")
- .trim()
- .split("\n")
- .map(line => parseInt(line))
+ .trim()
+ .split("\n")
+ .map(line => parseInt(line))
);
}
diff --git a/2022/20-Grove-Positioning-System/second.js b/2022/20-Grove-Positioning-System/second.js
index a01acc4..92185e0 100644
--- a/2022/20-Grove-Positioning-System/second.js
+++ b/2022/20-Grove-Positioning-System/second.js
@@ -65,9 +65,9 @@ class File {
function load(filename) {
return new File(
fs.readFileSync(filename, "utf8")
- .trim()
- .split("\n")
- .map(line => parseInt(line))
+ .trim()
+ .split("\n")
+ .map(line => parseInt(line))
);
}