mirror of
https://github.com/owncast/owncast.git
synced 2025-11-02 11:56:57 +08:00
Some linter cleanup
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user