debian-forge-composer/cmd/osbuild-composer
Lars Karlitski 13d5129b56 osbuild-composer: use less pointers in config
The default values of fields in both ComposerConfig.Koji and
ComposerConfig.Worker are well-suited for how they're used.

The nil-checks in main.go only checked that the sections exist. This is
quite a weak check for validity, because the sections could be empty. If
anything is required for composer to function, we could add proper
validation in the future.

Do the same for the CA fields, which contain file names. Go has lots of
precedent for using empty strings to denote "no value" in the standard
library. Use it for CA files, too, instead of pointers.
2020-09-29 21:52:58 +01:00
..
testdata osbuild-composer: use less pointers in config 2020-09-29 21:52:58 +01:00
config.go osbuild-composer: use less pointers in config 2020-09-29 21:52:58 +01:00
config_test.go osbuild-composer: use less pointers in config 2020-09-29 21:52:58 +01:00
main.go osbuild-composer: use less pointers in config 2020-09-29 21:52:58 +01:00