diff --git a/internal/http/services/owncloud/ocs/conversions/role.go b/internal/http/services/owncloud/ocs/conversions/role.go index cc2b060410..2d0587b395 100644 --- a/internal/http/services/owncloud/ocs/conversions/role.go +++ b/internal/http/services/owncloud/ocs/conversions/role.go @@ -96,7 +96,7 @@ func (r *Role) OCSPermissions() Permissions { // S = Shared // R = Shareable // M = Mounted -// Z = Deniable (NEW) +// Z = Deniable (NEW). func (r *Role) WebDAVPermissions(isDir, isShared, isMountpoint, isPublic bool) string { var b strings.Builder if !isPublic && isShared { diff --git a/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/public.go b/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/public.go index fd341cb3ea..342fa8a0d5 100644 --- a/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/public.go +++ b/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/public.go @@ -245,7 +245,6 @@ func (h *Handler) listPublicShares(r *http.Request, filters []*link.ListPublicSh } return ocsDataPayload, nil, nil - } func (h *Handler) isPublicShare(r *http.Request, oid string) bool { diff --git a/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/shares.go b/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/shares.go index 2933428c26..44a8309dd2 100644 --- a/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/shares.go +++ b/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/shares.go @@ -919,7 +919,6 @@ func (h *Handler) listSharesWithMe(w http.ResponseWriter, r *http.Request) { h.logProblems(status, err, "could not stat, skipping", log) return } - } data, err := conversions.CS3Share2ShareData(r.Context(), rs.Share) diff --git a/pkg/utils/utils.go b/pkg/utils/utils.go index 4c7ce12133..e95ce738e9 100644 --- a/pkg/utils/utils.go +++ b/pkg/utils/utils.go @@ -42,7 +42,7 @@ import ( "go.step.sm/crypto/randutil" // gocritic is disabled because google.golang.org/protobuf/proto does not provide a method to convert MessageV1 to MessageV2. - "github.com/golang/protobuf/proto" //nolint:staticcheck + "github.com/golang/protobuf/proto" "google.golang.org/protobuf/encoding/protojson" )