From 7c12e7aa0fe580b8730d1198182a2345c9fd245b Mon Sep 17 00:00:00 2001 From: Rick Yu Date: Sun, 22 Sep 2024 11:53:14 +0800 Subject: [PATCH] fix: broken code --- air_example.toml | 8 ++++---- runner/engine_test.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/air_example.toml b/air_example.toml index ac00e8c0..0fe5da31 100644 --- a/air_example.toml +++ b/air_example.toml @@ -74,8 +74,8 @@ clean_on_exit = true clear_on_rebuild = true keep_scroll = true -# Enable live-reloading on the browser. [proxy] - enabled = true - proxy_port = 8090 - app_port = 8080 +# Enable live-reloading on the browser. +enabled = true +proxy_port = 8090 +app_port = 8080 diff --git a/runner/engine_test.go b/runner/engine_test.go index 664e9ce1..df181902 100644 --- a/runner/engine_test.go +++ b/runner/engine_test.go @@ -1011,7 +1011,7 @@ include_ext = ["go"] include_dir = ["nonexist"] # prevent default "." watch from taking effect include_file = ["main.sh"] ` - if err := ioutil.WriteFile(dftTOML, []byte(config), 0o644); err != nil { + if err := os.WriteFile(dftTOML, []byte(config), 0o644); err != nil { t.Fatal(err) }