cmd/ghcs/delete: I learnt about strings.EqualFold - thanks, linter!

This commit is contained in:
Issy Long 2021-08-18 18:15:15 +01:00
parent 5af1cccb73
commit 28a3644a07

View file

@ -125,7 +125,7 @@ func DeleteByRepo(repo string) error {
var deleted bool
for _, c := range codespaces {
if strings.ToLower(c.RepositoryNWO) != strings.ToLower(repo) {
if !strings.EqualFold(c.RepositoryNWO, repo) {
continue
}
deleted = true