Skip to content

Commit

Permalink
Fix a deprecation warning in hs.wifi
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsj committed Sep 19, 2024
1 parent df61bbd commit 62e13ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extensions/wifi/libwifi.m
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ static int associate(lua_State *L) {
static int wifi_interfaces(lua_State *L) {
LuaSkin *skin = [LuaSkin sharedWithState:L] ;
[skin checkArgs:LS_TBREAK] ;
[skin pushNSObject:[CWWiFiClient interfaceNames]] ;
CWWiFiClient *sharedClient = [CWWiFiClient sharedWiFiClient] ;
[skin pushNSObject:[sharedClient interfaceNames]] ;

Check warning on line 186 in extensions/wifi/libwifi.m

View check run for this annotation

Codecov / codecov/patch

extensions/wifi/libwifi.m#L185-L186

Added lines #L185 - L186 were not covered by tests
return 1 ;
}

Expand Down

0 comments on commit 62e13ab

Please sign in to comment.