1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-25 08:59:31 -05:00

Fix delete SSH key in file

This commit is contained in:
Unknown 2014-03-16 05:53:06 -04:00
parent bcafba47e8
commit c83657307e

View file

@ -134,7 +134,7 @@ func DeletePublicKey(key *PublicKey) (err error) {
} }
// Found the line and copy rest of file. // Found the line and copy rest of file.
if strings.Contains(line, key.Content) { if strings.Contains(line, fmt.Sprintf("key-%d", key.Id)) && strings.Contains(line, key.Content) {
continue continue
} }
// Still finding the line, copy the line that currently read. // Still finding the line, copy the line that currently read.