From 5790a6ec78418d7b48d614efa5509d327dd136a4 Mon Sep 17 00:00:00 2001 From: Rick Yu Date: Sun, 22 Sep 2024 11:59:12 +0800 Subject: [PATCH] fix: broken code (#652) --- 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 bb0dfc0d..0cef2ea4 100644 --- a/air_example.toml +++ b/air_example.toml @@ -76,8 +76,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) }