Some linter cleanup

This commit is contained in:
Gabe Kangas
2021-10-25 00:31:45 -07:00
parent 3f4176d8d6
commit bdce2e13bf
9 changed files with 48 additions and 14 deletions

View File

@ -132,10 +132,8 @@ func makeAnimatedGifPreview(sourceFile string, outputFile string) {
ffmpegCmd := strings.Join(animatedGifFlags, " ")
if _, err := exec.Command("sh", "-c", ffmpegCmd).Output(); err != nil {
log.Errorln(err)
} else {
// rename temp file
if err := os.Rename(outputFileTemp, outputFile); err != nil {
log.Errorln(err)
}
} else if err := os.Rename(outputFileTemp, outputFile); err != nil {
log.Errorln(err)
}
}