summaryrefslogtreecommitdiff
path: root/src/core/internal_network
diff options
context:
space:
mode:
authorGravatar FearlessTobi2022-09-12 22:39:18 +0200
committerGravatar FearlessTobi2022-09-20 19:36:32 +0200
commit4213f1c126afda9c5235c868ded4e7d95438bffc (patch)
treeafc604f144281afbd45ce8a757f1d1fbb020018b /src/core/internal_network
parentdedicated_room: fix token padding ... (diff)
downloadyuzu-4213f1c126afda9c5235c868ded4e7d95438bffc.tar.gz
yuzu-4213f1c126afda9c5235c868ded4e7d95438bffc.tar.xz
yuzu-4213f1c126afda9c5235c868ded4e7d95438bffc.zip
Address some review comments
Diffstat (limited to 'src/core/internal_network')
-rw-r--r--src/core/internal_network/network_interface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/internal_network/network_interface.cpp b/src/core/internal_network/network_interface.cpp
index 858ae1cfb..057fd3661 100644
--- a/src/core/internal_network/network_interface.cpp
+++ b/src/core/internal_network/network_interface.cpp
@@ -188,7 +188,7 @@ std::vector<NetworkInterface> GetAvailableNetworkInterfaces() {
188std::optional<NetworkInterface> GetSelectedNetworkInterface() { 188std::optional<NetworkInterface> GetSelectedNetworkInterface() {
189 const auto& selected_network_interface = Settings::values.network_interface.GetValue(); 189 const auto& selected_network_interface = Settings::values.network_interface.GetValue();
190 const auto network_interfaces = Network::GetAvailableNetworkInterfaces(); 190 const auto network_interfaces = Network::GetAvailableNetworkInterfaces();
191 if (network_interfaces.size() == 0) { 191 if (network_interfaces.empty()) {
192 LOG_ERROR(Network, "GetAvailableNetworkInterfaces returned no interfaces"); 192 LOG_ERROR(Network, "GetAvailableNetworkInterfaces returned no interfaces");
193 return std::nullopt; 193 return std::nullopt;
194 } 194 }
@@ -209,7 +209,7 @@ std::optional<NetworkInterface> GetSelectedNetworkInterface() {
209void SelectFirstNetworkInterface() { 209void SelectFirstNetworkInterface() {
210 const auto network_interfaces = Network::GetAvailableNetworkInterfaces(); 210 const auto network_interfaces = Network::GetAvailableNetworkInterfaces();
211 211
212 if (network_interfaces.size() == 0) { 212 if (network_interfaces.empty()) {
213 return; 213 return;
214 } 214 }
215 215