Skip to content

main.go hardcodes source kind literal instead of using KindKeyCredentialBase constant #21

Description

@p0dalirius

Summary

main.go passes the literal "KeyCredentialBase" to gopengraph.NewOpenGraph instead of the KindKeyCredentialBase constant defined for exactly this purpose, leaving the constant unused and allowing the source kind to diverge from its single source of truth.

Location

  • File(s): main.go, kinds.go
  • Line(s) / function(s): main() at L114 (gopengraph.NewOpenGraph("KeyCredentialBase")); constant KindKeyCredentialBase at kinds.go:4

Note

This is a maintainability/consistency cleanup, not a behavioral bug — the literal is byte-identical to the constant's value, so output is unchanged. Filed at the maintainer's explicit request and tracked here for traceability; it is outside the strict bug scope.

Current Behavior

main.go:114 uses the string literal "KeyCredentialBase"; the KindKeyCredentialBase constant in kinds.go is dead code. The source kind is therefore declared in two places that can silently diverge.

Desired Behavior

main.go references KindKeyCredentialBase so the source kind has one authoritative definition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions