Skip to content

Using TrimLeft instead of TrimPrefix in fixPath method #2802

Description

@GrosQuildu

Description of the problem or steps to reproduce

The fixPath method is incorrect - uses TrimLeft instead of TrimPrefix, removing the "runtime/" cutset and not prefix.
https://github.com/zyedidia/micro/blob/225927b9a25f0d50ea63ea18bc7bb68e404c0cfd/runtime/runtime.go#L14-L16

Seems like the bug is currently not triggerable. However, may break something in the future.

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