Skip to content

Commit aaaaf27

Browse files
authored
Merge pull request #141 from imclerran/code-cleanup
Rename function, cleanup irelevant comment
2 parents 298db94 + 0a4743c commit aaaaf27

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/Installer.roc

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module
77
} -> [install!]
88

99
install! = |cache_dir|
10-
roc_present_cmd({})
10+
roc_version_cmd({})
1111
|> cmd_output!
1212
|> .status
1313
|> Result.map_err(|_| Exit(1, "Roc binary could not be found."))
@@ -48,7 +48,7 @@ install! = |cache_dir|
4848
delete_repo!(cache_dir)
4949
|> Result.map_err(|e| Exit(1, "Could not delete repository at ${cache_dir}/repo: ${Inspect.to_str(e)}"))
5050

51-
roc_present_cmd = |{}|
51+
roc_version_cmd = |{}|
5252
cmd_new("/usr/bin/env")
5353
|> cmd_args(["roc", "version"])
5454

@@ -67,7 +67,7 @@ install_cmd = |cache_dir|
6767
delete_repo! = |cache_dir|
6868
delete_dirs!("${cache_dir}/repo")
6969

70-
## Strip ANSI control sequences from a list of bytes. (Ensures proper JSON serialization)
70+
## Strip ANSI control sequences from a list of bytes.
7171
strip_ansi_control : List U8 -> List U8
7272
strip_ansi_control = |bytes|
7373
when List.find_first_index(bytes, |b| b == 27) is

src/main.roc

-1
Original file line numberDiff line numberDiff line change
@@ -770,4 +770,3 @@ get_terminal_size! = |{}|
770770
|> Result.map_ok(ANSI.parse_cursor)
771771
|> Result.map_ok(|{ row, col }| { width: col, height: row })
772772
|> Result.map_err(|e| Exit(1, "Error while getting terminal size: ${Inspect.to_str(e)}"))
773-

0 commit comments

Comments
 (0)