refactor: remove assert

This commit is contained in:
Alexis 2018-08-16 15:41:09 +02:00
parent 6635548d3e
commit 57f3a01a5b
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,8 @@
waybar::modules::Network::Network(Json::Value config)
: config_(std::move(config)),
ifid_(if_nametoindex(config_["interface"].asCString()))
ifid_(if_nametoindex(config_["interface"].asCString())),
signal_strength_dbm_(0), signal_strength_(0)
{
if (ifid_ == 0) {
throw std::runtime_error("Can't found network interface");

View File

@ -64,7 +64,6 @@ void waybar::modules::Pulseaudio::subscribeCb(pa_context* context,
pa_context_get_sink_info_by_index(context, idx, sinkInfoCb, data);
break;
default:
assert(0);
break;
}
}