refactor: remove assert
parent
6635548d3e
commit
57f3a01a5b
|
@ -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");
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue