Skip to content

Commit

Permalink
style: fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavoabel authored Sep 8, 2024
1 parent 561ea0a commit ee74cac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public String getName() {
*/
@ReactMethod
public void loadWifiList(final Promise promise) {
if (!assertLocationPermissionGranted(promise)) {
if(!assertLocationPermissionGranted(promise)){
return;
}

Expand Down Expand Up @@ -235,7 +235,7 @@ public void openWifiSettings() {
*/
@ReactMethod
public void connectToProtectedSSID(@NonNull final String SSID, @NonNull final String password, final boolean isWep, final boolean isHidden, final Promise promise) {
if (!assertLocationPermissionGranted(promise)) {
if(!assertLocationPermissionGranted(promise)){
return;
}

Expand Down Expand Up @@ -405,7 +405,7 @@ public void failed(@NonNull DisconnectionErrorCode errorCode) {
*/
@ReactMethod
public void getCurrentWifiSSID(final Promise promise) {
if (!assertLocationPermissionGranted(promise)) {
if(!assertLocationPermissionGranted(promise)){
return;
}

Expand Down
11 changes: 3 additions & 8 deletions lib/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ declare module 'react-native-wifi-reborn' {
isHidden?: boolean;
timeout?: number;
};

export function connectToProtectedWifiSSID(
options: ConnectToProtectedSSIDParams,

Check failure on line 142 in lib/types/index.d.ts

View workflow job for this annotation

GitHub Actions / build

Delete `,`
): Promise<void>;
Expand All @@ -155,11 +154,8 @@ declare module 'react-native-wifi-reborn' {
//#region iOS only

export function connectToSSID(SSID: string): Promise<void>;

export function connectToSSIDPrefix(SSIDPrefix: string): Promise<void>;

export function disconnectFromSSID(SSIDPrefix: string): Promise<void>;

/**
* Connects to a WiFi network. Rejects with an error if it couldn't connect.
*
Expand All @@ -172,13 +168,12 @@ declare module 'react-native-wifi-reborn' {
SSID: string,
password: string | null,
isWEP: boolean,
joinOnce: boolean,
joinOnce: boolean
): Promise<void>;

export function connectToProtectedSSIDPrefix(
SSIDPrefix: string,
password: string,
isWEP: boolean,
isWEP: boolean
): Promise<void>;

//#endregion
Expand Down Expand Up @@ -310,7 +305,7 @@ declare module 'react-native-wifi-reborn' {
*/
export function forceWifiUsageWithOptions(
useWifi: boolean,
options: { noInternet: boolean },
options: { noInternet: boolean }
): Promise<void>;

//#endregion
Expand Down

0 comments on commit ee74cac

Please sign in to comment.