File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const getProject = async (req: ExpressRequest, res: ExpressResponse) => {
2828 let content : any ;
2929 try {
3030 content = JSON . parse ( value ) ;
31- } catch ( error ) {
31+ } catch {
3232 res . status ( 500 ) . send ( 'Server Error!' ) ;
3333 return ;
3434 }
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const dpasteService = {
2020 const res = await fetch ( dpasteGetUrl + id + '.txt' ) ;
2121 if ( ! res . ok ) return { } ;
2222 return JSON . parse ( await res . text ( ) ) ;
23- } catch ( error ) {
23+ } catch {
2424 return { } ;
2525 }
2626 } ,
@@ -40,7 +40,7 @@ const dpasteService = {
4040 if ( ! res . ok ) return '' ;
4141 const url = await res . text ( ) ;
4242 return url . replace ( dpasteGetUrl , '' ) ;
43- } catch ( error ) {
43+ } catch {
4444 return '' ;
4545 }
4646 } ,
@@ -54,7 +54,7 @@ const apiService = {
5454 const res = await fetch ( apiUrl + '?id=' + id ) ;
5555 if ( ! res . ok ) return { } ;
5656 return JSON . parse ( await res . text ( ) ) ;
57- } catch ( error ) {
57+ } catch {
5858 return { } ;
5959 }
6060 } ,
@@ -68,7 +68,7 @@ const apiService = {
6868 } ) ;
6969 if ( ! res . ok ) return '' ;
7070 return res . text ( ) ;
71- } catch ( error ) {
71+ } catch {
7272 return '' ;
7373 }
7474 } ,
@@ -82,7 +82,7 @@ const selfHostedService = {
8282 const res = await fetch ( selfHostedUrl + '?id=' + id ) ;
8383 if ( ! res . ok ) return { } ;
8484 return res . json ( ) ;
85- } catch ( error ) {
85+ } catch {
8686 return { } ;
8787 }
8888 } ,
@@ -95,7 +95,7 @@ const selfHostedService = {
9595 } ) ;
9696 if ( ! res . ok ) return '' ;
9797 return res . text ( ) ;
98- } catch ( error ) {
98+ } catch {
9999 return '' ;
100100 }
101101 } ,
You can’t perform that action at this time.
0 commit comments