diff options
author | Joe <rbo@gmx.us> | 2024-04-29 20:20:20 +0200 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-04-29 20:20:20 +0200 |
commit | 0a3aca457c3c750340dcc0aa072133c3884bb773 (patch) | |
tree | aff37bad9b2b5ebb7cb71eaf3842f4a60f0ffe4a /src/i_insert.go | |
parent | up (diff) | |
download | hardflip-0a3aca457c3c750340dcc0aa072133c3884bb773.tar.gz hardflip-0a3aca457c3c750340dcc0aa072133c3884bb773.tar.bz2 hardflip-0a3aca457c3c750340dcc0aa072133c3884bb773.tar.xz hardflip-0a3aca457c3c750340dcc0aa072133c3884bb773.tar.zst hardflip-0a3aca457c3c750340dcc0aa072133c3884bb773.zip |
quick weird bugfix
Diffstat (limited to '')
-rw-r--r-- | src/i_insert.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/i_insert.go b/src/i_insert.go index 8ea6754..5b769f4 100644 --- a/src/i_insert.go +++ b/src/i_insert.go @@ -43,7 +43,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * hardflip: src/i_insert.go - * Wed Apr 24 17:40:10 2024 + * Mon Apr 29 15:36:06 2024 * Joe * * insert a new host @@ -146,14 +146,14 @@ func i_insert_host(data *HardData, insert *HostNode) error { data.data_dir + insert.parent.path()) insert.filename = filename } - fmt, err := yaml.Marshal(insert) + format, err := yaml.Marshal(insert) if err != nil { c_error_mode("yaml", err, &data.ui) data.insert = nil return err } err = os.WriteFile(data.data_dir + insert.parent.path() + filename, - fmt, 0644) + format, 0644) if err != nil { c_error_mode("can't write file", err, &data.ui) data.insert = nil |