cmd/koji: add error handling to logout

otherwise, the linter complains
This commit is contained in:
Ondřej Budai 2020-05-15 15:56:14 +02:00 committed by Tom Gundersen
parent 87a7e90c98
commit a1c578c8d1

View file

@ -3,6 +3,7 @@ package main
import (
"flag"
"fmt"
"log"
"os"
"path"
"time"
@ -48,7 +49,12 @@ func main() {
println(err.Error())
return
}
defer k.Logout()
defer func() {
err := k.Logout()
if err != nil {
log.Print("logging out of koji failed ", err)
}
}()
hash, length, err := k.Upload(file, dir, path.Base(filename))
if err != nil {