Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit ad40bb9

Browse files
committed
- Reverted the formatting for lambdas.
1 parent 8b2312c commit ad40bb9

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/HistoryView.cs

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,7 @@ private void RefreshLog()
207207
{
208208
if (Repository != null)
209209
{
210-
GitClient.Log().ThenInUI((success, log) =>
211-
{
210+
GitClient.Log().ThenInUI((success, log) => {
212211
if (success) OnLogUpdate(log);
213212
}).Start();
214213
}
@@ -586,8 +585,7 @@ private void RevertCommit()
586585
{
587586
Repository
588587
.Revert(selection.CommitID)
589-
.FinallyInUI((success, e) =>
590-
{
588+
.FinallyInUI((success, e) => {
591589
if (!success)
592590
{
593591
EditorUtility.DisplayDialog(dialogTitle,
@@ -708,17 +706,15 @@ private void Pull()
708706
Repository
709707
.Pull()
710708
// we need the error propagated from the original git command to handle things appropriately
711-
.Then(success =>
712-
{
709+
.Then(success => {
713710
if (!success)
714711
{
715712
// if Pull fails we need to parse the output of the command, figure out
716713
// whether pull triggered a merge or a rebase, and abort the operation accordingly
717714
// (either git rebase --abort or git merge --abort)
718715
}
719716
}, true)
720-
.FinallyInUI((success, e) =>
721-
{
717+
.FinallyInUI((success, e) => {
722718
if (success)
723719
{
724720
EditorUtility.DisplayDialog(Localization.PullActionTitle,
@@ -741,8 +737,7 @@ private void Push()
741737
var remote = Repository.CurrentRemote.HasValue ? Repository.CurrentRemote.Value.Name : String.Empty;
742738
Repository
743739
.Push()
744-
.FinallyInUI((success, e) =>
745-
{
740+
.FinallyInUI((success, e) => {
746741
if (success)
747742
{
748743
EditorUtility.DisplayDialog(Localization.PushActionTitle,
@@ -764,8 +759,7 @@ private void Fetch()
764759
var remote = Repository.CurrentRemote.HasValue ? Repository.CurrentRemote.Value.Name : String.Empty;
765760
Repository
766761
.Fetch()
767-
.FinallyInUI((success, e) =>
768-
{
762+
.FinallyInUI((success, e) => {
769763
if (!success)
770764
{
771765
EditorUtility.DisplayDialog(FetchActionTitle, FetchFailureDescription,

0 commit comments

Comments
 (0)