Skip to content

Commit

Permalink
Merge pull request #467 from emillon/remove-unused-reset-terminal
Browse files Browse the repository at this point in the history
Remove unused reset_terminal hook
  • Loading branch information
Leonidas-from-XIV authored Apr 24, 2023
2 parents 2ca40e3 + 828a890 commit 6e16324
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/config.ml
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,6 @@ let find () =
OS.File.exists file >>= fun exists ->
if exists then OS.File.read file >>= of_yaml >>| fun x -> Some x else Ok None

let reset_terminal : (unit -> unit) option ref = ref None
let cleanup () = match !reset_terminal with None -> () | Some f -> f ()
let () = at_exit cleanup
let token_file () = config_dir () >>= fun cfg -> Ok Fpath.(cfg / "github.token")

let get_token () =
Expand Down

0 comments on commit 6e16324

Please sign in to comment.