Alerting: Remove duplicate error message (#51515)

This commit is contained in:
George Robinson 2022-06-29 09:39:24 +01:00 committed by GitHub
parent 683bbc7373
commit ed56755dd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,7 +99,7 @@ func (s *ScreenshotImageService) NewImage(ctx context.Context, r *models.AlertRu
// TODO: Check for screenshot upload failures. These images should still be
// stored because we have a local disk path that could be useful.
if err != nil {
return nil, fmt.Errorf("failed to take screenshot: %w", err)
return nil, err
}
v := models.Image{