(connection: Connection)
| 41 | } |
| 42 | |
| 43 | export async function deleteConnection(connection: Connection) { |
| 44 | const storedConnections = await getStoredConnections(); |
| 45 | const index = getIndexOfConnection(storedConnections, connection); |
| 46 | if (index === -1) { |
| 47 | return; |
| 48 | } |
| 49 | storedConnections.splice(index, 1); |
| 50 | await SecureStore.setItemAsync(STORE_KEY, JSON.stringify(storedConnections)); |
| 51 | } |
no test coverage detected