Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

build: fix whitespace changes due to go1.11 gofmt changes

Nick Craig-Woodc19d1ae9a55f
diff --git a/backend/box/box.go b/backend/box/box.go
index 337584b78..9ee8c9ff8 100644
--- a/backend/box/box.go
+++ b/backend/box/box.go
@@ -1014,8 +1014,8 @@ func (o *Object) upload(in io.Reader, leaf, directoryID string, modTime time.Tim
var resp *http.Response
var result api.FolderItems
opts := rest.Opts{
- Method: "POST",
- Body: in,
+ Method: "POST",
+ Body: in,
MultipartMetadataName: "attributes",
MultipartContentName: "contents",
MultipartFileName: upload.Name,
diff --git a/backend/drive/drive.go b/backend/drive/drive.go
index 6843a6854..c818de85b 100644
--- a/backend/drive/drive.go
+++ b/backend/drive/drive.go
@@ -68,26 +68,26 @@ var (
RedirectURL: oauthutil.TitleBarRedirectURL,
}
mimeTypeToExtension = map[string]string{
- "application/epub+zip": "epub",
- "application/msword": "doc",
- "application/pdf": "pdf",
- "application/rtf": "rtf",
- "application/vnd.ms-excel": "xls",
- "application/vnd.oasis.opendocument.presentation": "odp",
- "application/vnd.oasis.opendocument.spreadsheet": "ods",
- "application/vnd.oasis.opendocument.text": "odt",
+ "application/epub+zip": "epub",
+ "application/msword": "doc",
+ "application/pdf": "pdf",
+ "application/rtf": "rtf",
+ "application/vnd.ms-excel": "xls",
+ "application/vnd.oasis.opendocument.presentation": "odp",
+ "application/vnd.oasis.opendocument.spreadsheet": "ods",
+ "application/vnd.oasis.opendocument.text": "odt",
"application/vnd.openxmlformats-officedocument.presentationml.presentation": "pptx",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "xlsx",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": "docx",
"application/x-vnd.oasis.opendocument.spreadsheet": "ods",
- "application/zip": "zip",
- "image/jpeg": "jpg",
- "image/png": "png",
- "image/svg+xml": "svg",
- "text/csv": "csv",
- "text/html": "html",
- "text/plain": "txt",
- "text/tab-separated-values": "tsv",
+ "application/zip": "zip",
+ "image/jpeg": "jpg",
+ "image/png": "png",
+ "image/svg+xml": "svg",
+ "text/csv": "csv",
+ "text/html": "html",
+ "text/plain": "txt",
+ "text/tab-separated-values": "tsv",
}
extensionToMimeType map[string]string
partialFields = "id,name,size,md5Checksum,trashed,modifiedTime,createdTime,mimeType,parents"