Ignore dev version (#27)

* Ignore dev version

* Review commit
This commit is contained in:
Masahiro Fujimura 2020-01-25 16:10:37 +09:00 committed by Teppei Fukuda
parent 9b951419fb
commit a128f2f876

View File

@ -60,6 +60,9 @@ func (c Config) Update() error {
return xerrors.Errorf("failed to get Photon versions: %w", err)
}
for _, version := range versions {
if strings.ToLower(version) == "dev" {
continue
}
res, err := utils.FetchURL(c.URL+fmt.Sprintf(advisoryFormat, version), "", c.Retry)
if err != nil {
return xerrors.Errorf("failed to fetch Photon advisory: %w", err)