File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
e2e/react-native-otel/app/(tabs) Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -466,25 +466,14 @@ export default function HomeScreen() {
466466
467467 const handleAxiosSuccess = async ( ) => {
468468 await axios . get ( 'https://jsonplaceholder.typicode.com/posts/1' )
469- Alert . alert ( 'Axios Request' , `Request completed` )
470469 }
471470
472471 const handleAxios404 = async ( ) => {
473- try {
474- await axios . get ( 'https://jsonplaceholder.typicode.com/posts/99999' )
475- } catch ( error ) {
476- Alert . alert ( 'Axios 404' , `Request completed` )
477- throw error
478- }
472+ await axios . get ( 'https://jsonplaceholder.typicode.com/posts/99999' )
479473 }
480474
481475 const handleAxios500 = async ( ) => {
482- try {
483- await axios . get ( 'https://httpstatuses.maor.io/500' )
484- } catch ( error ) {
485- Alert . alert ( 'Axios 500' , `Request completed` )
486- throw error
487- }
476+ await axios . get ( 'https://httpstatuses.maor.io/500' )
488477 }
489478
490479 return (
You can’t perform that action at this time.
0 commit comments