mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 08:12:17 +00:00
m_config: cosmetics: make code less verbose
This commit is contained in:
parent
bbc1469272
commit
cc235d203d
@ -606,15 +606,10 @@ int m_config_set_option(struct m_config *config, struct bstr name,
|
||||
const struct m_option *m_config_get_option(const struct m_config *config,
|
||||
struct bstr name)
|
||||
{
|
||||
struct m_config_option *co;
|
||||
|
||||
assert(config != NULL);
|
||||
|
||||
co = m_config_get_co(config, name);
|
||||
if (co)
|
||||
return co->opt;
|
||||
else
|
||||
return NULL;
|
||||
struct m_config_option *co = m_config_get_co(config, name);
|
||||
return co ? co->opt : NULL;
|
||||
}
|
||||
|
||||
int m_config_option_requires_param(struct m_config *config, bstr name)
|
||||
|
Loading…
Reference in New Issue
Block a user