mirror of https://github.com/databricks/cli.git
lint
This commit is contained in:
parent
583637aed6
commit
9552131a2a
|
@ -102,7 +102,7 @@ func NewDbfsClient(w *databricks.WorkspaceClient, root string) (Filer, error) {
|
||||||
|
|
||||||
// The PUT API for DBFS requires setting the content length header beforehand in the HTTP
|
// The PUT API for DBFS requires setting the content length header beforehand in the HTTP
|
||||||
// request.
|
// request.
|
||||||
func putContentLength(path string, overwriteField string, file *os.File) (int64, error) {
|
func putContentLength(path, overwriteField string, file *os.File) (int64, error) {
|
||||||
buf := &bytes.Buffer{}
|
buf := &bytes.Buffer{}
|
||||||
writer := multipart.NewWriter(buf)
|
writer := multipart.NewWriter(buf)
|
||||||
err := writer.WriteField("path", path)
|
err := writer.WriteField("path", path)
|
||||||
|
|
Loading…
Reference in New Issue