Skip to content

Commit

Permalink
Small code cleaning (solinor#67)
Browse files Browse the repository at this point in the history
* consolidated react-native imports and removed unused code
* fixed code style changes
  • Loading branch information
Stuart Casarotto authored Jan 27, 2021
1 parent ee50d43 commit d09af7d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
// @flow
import { useState, useEffect } from "react";
import { Platform } from "react-native";
import {
NativeModules,
DeviceEventEmitter,
NativeEventEmitter
} from "react-native";
import { Platform, NativeModules, NativeEventEmitter } from "react-native";
import waitUntil from "@cs125/wait-until";

const { RNBluetoothManager } = NativeModules;
Expand Down Expand Up @@ -45,7 +40,7 @@ class BluetoothManager {

async state() {
this.manualInit()
return new Promise((resolve, reject) => {
return new Promise((resolve) => {
waitUntil()
.interval(100)
.times(10)
Expand Down

0 comments on commit d09af7d

Please sign in to comment.