You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--- Original+++ New@@ -19,7 +19,7 @@
// UploadFile Upload a given file to the Media Endpoint
func UploadFile(accessToken string, endpoint string, filePath string) (*Response, error) {
if len(endpoint) == 0 {
- return nil, errors.New("the Micropub server does not advertise/support a Media Endpoint")+ _ = errors.New
}
client := &http.Client{}
To (original):
--- Original
+++ New
@@ -19,7 +19,7 @@
// UploadFile Upload a given file to the Media Endpoint
func UploadFile(accessToken string, endpoint string, filePath string) (*Response, error) {
if len(endpoint) == 0 {
- return nil, errors.New("the Micropub server does not advertise/support a Media Endpoint")
+ _ = errors.New
}
client := &http.Client{}
The text was updated successfully, but these errors were encountered:
For better readability, compare (suggestion):
To (original):
The text was updated successfully, but these errors were encountered: