File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 22
33namespace InEngine . Core . IO
44{
5- public class Http
5+ public static class Http
66 {
7- public string Get ( string url )
7+ public static string Get ( string url )
88 {
99 return new RestClient ( url ) . Execute ( new RestRequest ( string . Empty , Method . GET ) ) . Content ;
1010 }
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public void FirePreActions(AbstractCommand command)
4444 try
4545 {
4646 if ( ShouldPingBefore )
47- new IO . Http ( ) . Get ( PingBeforeUrl ) ;
47+ IO . Http . Get ( PingBeforeUrl ) ;
4848 }
4949 catch ( Exception exception )
5050 {
@@ -75,7 +75,7 @@ public void FirePostActions(AbstractCommand command)
7575 try
7676 {
7777 if ( ShouldPingAfter )
78- new IO . Http ( ) . Get ( PingAfterUrl ) ;
78+ IO . Http . Get ( PingAfterUrl ) ;
7979 }
8080 catch ( Exception exception )
8181 {
You can’t perform that action at this time.
0 commit comments