diff options
| author | Teddy Wing | 2018-10-20 17:40:20 +0200 |
|---|---|---|
| committer | Teddy Wing | 2018-10-20 17:40:20 +0200 |
| commit | 4e90fd77eb0ef56a39c2af6fae068fb91782fd0d (patch) | |
| tree | f17e39491f8d5aed317b79dbce067e29aff1f65d /lib | |
| parent | 2e79762f80e55c9f0897fafc0f5499060343217f (diff) | |
| download | dome-key-map-4e90fd77eb0ef56a39c2af6fae068fb91782fd0d.tar.bz2 | |
read_config_file(): Return a default config if no file found
The only config option we have is `timeout`, which has a default value.
Any future config options, it seems, should have default values also.
We shouldn't force users to create a config file, as the prior code
would do. They should be able to rely on the default, and create a
`config.toml` only if they want to change it.
If no config file is found, we should create a default `Config`.
Rename the method because now it still works without reading the config
file.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
