Skip to content

Incorrect detection of already existing key? #64

Closed
@rchady

Description

@rchady

I was stepping through in the debugger and came across what I believe is a bug. In particular, in git_hosting.rb:973 it uses index() to determine if a key is already in the old_keynames. However, if the key happens to be the first item in old_keynames, index() will return 0... and that unless block gets run. I believe include? would be the better method to use here?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions