Skip to content

De-depuplicate code in packages #295

Open
@redhatrises

Description

e.g.

    if len(p.Components) > 0 {
        buffer.WriteString(",\"components\":[")
        for i, v := range p.Components {
            bytesJSON, err := json.Marshal(v)
            if err != nil {

and

    if len(p.Standards) > 0 {
        buffer.WriteString(",\"standards\":[")
        for i, v := range p.Standards {
            bytesJSON, err := json.Marshal(v)
            if err != nil {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions