Skip to content

Commit

Permalink
Automated dotnet-format update (#1044)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] authored Aug 15, 2024
1 parent ddae781 commit 404b3c7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Beutl.Threading/Dispatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ public void VerifyAccess()
throw new InvalidOperationException("Call from invalid thread");
}

public static Dispatcher Spawn(TimeProvider? timeProvider=null)
public static Dispatcher Spawn(TimeProvider? timeProvider = null)
{
var dispatcher = new Dispatcher(timeProvider??TimeProvider.System);
var dispatcher = new Dispatcher(timeProvider ?? TimeProvider.System);
dispatcher.Thread.Start();
return dispatcher;
}

public static Dispatcher Spawn(Action operation, TimeProvider? timeProvider=null)
public static Dispatcher Spawn(Action operation, TimeProvider? timeProvider = null)
{
Dispatcher dispatcher = Spawn(timeProvider);
dispatcher.Dispatch(operation, DispatchPriority.High);
Expand Down
2 changes: 1 addition & 1 deletion tests/Beutl.UnitTests/Engine/Animation/AnimatableTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using Beutl.Animation;
Expand Down
3 changes: 2 additions & 1 deletion tests/Beutl.UnitTests/Engine/Animation/KeyFrameTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ public void Serialize_ShouldCorrectlySerializeSplineEasing()
{
var keyFrame = new KeyFrame<int>
{
Easing = new SplineEasing(0.1f, 0.2f, 0.3f, 0.4f), KeyTime = TimeSpan.FromSeconds(1)
Easing = new SplineEasing(0.1f, 0.2f, 0.3f, 0.4f),
KeyTime = TimeSpan.FromSeconds(1)
};
var context = new Mock<ICoreSerializationContext>();
var jsonObject = new JsonObject();
Expand Down
2 changes: 1 addition & 1 deletion tests/Beutl.UnitTests/Threading/DispatcherTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Reflection;
using System.Reflection;
using System.Runtime.CompilerServices;
using Beutl.Threading;
using Microsoft.Extensions.Time.Testing;
Expand Down

0 comments on commit 404b3c7

Please sign in to comment.