fix: lint err check

This commit is contained in:
Cristian Vidmar 2024-04-29 15:01:28 +02:00
parent 441c2f9136
commit 54c71081a9

View File

@ -106,7 +106,10 @@ func main() {
}
if conf.ExportFile == "" && conf.SpaceID == "" ||
conf.ExportFile != "" && conf.SpaceID != "" {
byt, _ := json.MarshalIndent(conf, "", " ")
byt, errMarshal := json.MarshalIndent(conf, "", " ")
if errMarshal != nil {
fatal(errMarshal)
}
fmt.Println(string(byt))
usageError("Please provide either a Contentful Space ID and CMA access token or an export file name")
}