address comment

This commit is contained in:
Tan Jiang 2017-07-12 15:05:27 +08:00
parent 543cf62e14
commit 5f233f3e21

View File

@ -65,5 +65,9 @@ func GetLastUpdate() (int64, error) {
}
return res, nil
}
if num > 1 {
return 0, fmt.Errorf("Multiple entries for %s in Clair DB", updaterLast)
}
//num is zero, it's not updated yet.
return 0, nil
}