mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-09-24 07:54:43 +00:00
remove remaining .Result calls
This commit is contained in:
@@ -4,12 +4,13 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ElectronNET.CLI
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
static async Task Main(string[] args)
|
||||
{
|
||||
if (args.Length == 0)
|
||||
{
|
||||
@@ -56,7 +57,7 @@ namespace ElectronNET.CLI
|
||||
|
||||
if (command != null)
|
||||
{
|
||||
var success = command.ExecuteAsync().Result;
|
||||
var success = await command.ExecuteAsync();
|
||||
if (!success)
|
||||
{
|
||||
Environment.Exit(-1);
|
||||
|
||||
Reference in New Issue
Block a user