chores: update dependencies #26

Merged
amery merged 3 commits from pr-amery-chores into main 2023-10-23 22:58:26 +02:00
2 changed files with 10 additions and 2 deletions
Showing only changes of commit 986db350b4 - Show all commits
+5 -1
View File
@@ -33,7 +33,11 @@ func (m *Cluster) openWriter(name string, flags int, args ...any) (io.WriteClose
return nil, err
}
return f.(io.WriteCloser), nil
if f, ok := f.(io.WriteCloser); ok {
return f, nil
}
panic("unreachable")
}
// ReadFile reads a file from the cluster's config directory
+5 -1
View File
@@ -34,7 +34,11 @@ func (m *Machine) openWriter(name string, flags int, args ...any) (io.WriteClose
return nil, err
}
return f.(io.WriteCloser), nil
if f, ok := f.(io.WriteCloser); ok {
return f, nil
}
panic("unreachable")
}
// RemoveFile deletes a file from the machine's config directory