mirror of
https://github.com/foomo/gocontentful.git
synced 2025-10-16 12:25:39 +00:00
fix: lint err check
This commit is contained in:
parent
441c2f9136
commit
54c71081a9
5
main.go
5
main.go
@ -106,7 +106,10 @@ func main() {
|
|||||||
}
|
}
|
||||||
if conf.ExportFile == "" && conf.SpaceID == "" ||
|
if conf.ExportFile == "" && conf.SpaceID == "" ||
|
||||||
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))
|
fmt.Println(string(byt))
|
||||||
usageError("Please provide either a Contentful Space ID and CMA access token or an export file name")
|
usageError("Please provide either a Contentful Space ID and CMA access token or an export file name")
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user