refactor: add more go linters (#970)
This commit is contained in:
1 parent
54d92a2708
commit
700f32718e
56 files changed
+436
-221
No files matched your search
+3
-1
@@ -57,7 +57,9 @@ var sharePostHandler = withPermShare(func(w http.ResponseWriter, r *http.Request
|
||||
var err error
|
||||
s, err = d.store.Share.GetPermanent(r.URL.Path, d.user.ID)
|
||||
if err == nil {
|
||||
w.Write([]byte(path.Join(d.server.BaseURL, "/share/", s.Hash)))
|
||||
if _, err := w.Write([]byte(path.Join(d.server.BaseURL, "/share/", s.Hash))); err != nil {
|
||||
return http.StatusInternalServerError, err
|
||||
}
|
||||
return 0, nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user