pkg/filestore/filestoresql/file_query.go
Method FileQuery.SetPath
has 9 return statements (exceeds 4 allowed). Open
Open
func (q *FileQuery) SetPath(ctx context.Context, path string) error {
path, err := filestore.SanitizePath(path)
if err != nil {
return fmt.Errorf("%w: %w", filestore.ErrInvalidPathParameter, err)
}
Method FileQuery.SetData
has 5 return statements (exceeds 4 allowed). Open
Open
func (q *FileQuery) SetData(ctx context.Context, data []byte) (string, error) {
if q.file.Typ == filestore.FileTypeDirectory {
return "", filestore.ErrFileTypeIsDirectory
}