Skip to content

Commit 6789e5c

Browse files
committed
[ECO-4567] Reverted all formatting based changes for all files
1 parent 4fdf426 commit 6789e5c

18 files changed

Lines changed: 101 additions & 111 deletions

.editorconfig

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,13 @@ root = true
88
indent_style = space
99
indent_size = 4
1010
trim_trailing_whitespace = true
11-
insert_final_newline = true
11+
insert_final_newline = false
1212

1313
# SA1200: Using directives should be placed correctly
1414
dotnet_diagnostic.SA1200.severity = none
1515

16-
[*.cake]
17-
indent_style = space
18-
indent_size = 4
19-
trim_trailing_whitespace = true
20-
insert_final_newline = true
21-
2216
[*.{xaml,xml,config,manifest}]
2317
indent_style = space
2418
indent_size = 2
2519
trim_trailing_whitespace = true
26-
insert_final_newline = false
20+
insert_final_newline = false

examples/AndroidSample/AblyService.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ public void Init()
1818
_ably = new AblyRealtime(new ClientOptions("lNj80Q.iGyVcQ:2QKX7FFASfX-7H9H")
1919
{
2020
LogHandler = this,
21-
LogLevel = LogLevel.Debug,
21+
LogLevel = LogLevel.Debug,
2222
AutoConnect = false,
2323
UseBinaryProtocol = false
2424
});
2525
_ably.Connection.On(change =>
2626
{
27-
if (change.Current == ConnectionState.Connected)
28-
foreach (var channel in _ably.Channels)
27+
if(change.Current == ConnectionState.Connected)
28+
foreach(var channel in _ably.Channels)
2929
channel.Attach();
3030

3131
_connectionSubject.OnNext(change.Current.ToString());
@@ -48,7 +48,7 @@ public IObservable<Message> SubsrcibeToChannel(string channelName)
4848
_ably.Channels.Get(channelName).Subscribe(subject.OnNext);
4949
return subject;
5050
}
51-
51+
5252
public void LogEvent(LogLevel level, string message)
5353
{
5454
Android.Util.Log.Debug("ably", $"[{level}] {message}");
@@ -66,6 +66,6 @@ public IDisposable Subscribe(IObserver<string> observer)
6666
}
6767
}
6868

69-
69+
7070

7171
}

examples/AndroidSample/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public App(AblyService ably)
3434

3535
protected override void OnStart()
3636
{
37-
37+
3838
// Handle when your app starts
3939
}
4040

format-code.cmd

Lines changed: 0 additions & 1 deletion
This file was deleted.

format-code.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/IO.Ably.Shared/Realtime/ChannelMessageProcessor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ private bool ValidateIfDeltaItHasCorrectPreviousMessageId(ProtocolMessage protoc
177177
var deltaFrom = firstMessage.Extras?.Delta?.From;
178178
if (deltaFrom != null && deltaFrom.EqualsTo(channelSuccessfulMessageIds.LastMessageId) == false)
179179
{
180-
Logger.Warning($"Delta message decode failure. Previous message id does not equal expected message id. PreviousMessageId: {channelSuccessfulMessageIds.LastMessageId}. ExpectedMessageId: {deltaFrom}");
181-
return false;
180+
Logger.Warning($"Delta message decode failure. Previous message id does not equal expected message id. PreviousMessageId: {channelSuccessfulMessageIds.LastMessageId}. ExpectedMessageId: {deltaFrom}");
181+
return false;
182182
}
183183

184184
return true;

src/IO.Ably.Shared/Realtime/Connection.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -305,15 +305,15 @@ internal void NotifyUpdate(ConnectionStateChange stateChange)
305305
RealtimeClient.NotifyExternalClients(
306306
() =>
307307
{
308-
Emit(stateChange.Event, stateChange);
309-
try
310-
{
311-
externalHandlers?.Invoke(this, stateChange);
312-
}
313-
catch (Exception ex)
314-
{
315-
Logger.Error("Error notifying Connection state changed handlers", ex);
316-
}
308+
Emit(stateChange.Event, stateChange);
309+
try
310+
{
311+
externalHandlers?.Invoke(this, stateChange);
312+
}
313+
catch (Exception ex)
314+
{
315+
Logger.Error("Error notifying Connection state changed handlers", ex);
316+
}
317317
});
318318
}
319319

src/IO.Ably.Shared/Result.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@ public static Result Ok()
160160
return new Result(true, null);
161161
}
162162

163-
/// <summary>
164-
/// Factory method to create a successful Result of T with value.
165-
/// </summary>
166-
/// <typeparam name="T">Type of value.</typeparam>
167-
/// <param name="value">successful value held in the result.</param>
168-
/// <returns>Result.</returns>
163+
/// <summary>
164+
/// Factory method to create a successful Result of T with value.
165+
/// </summary>
166+
/// <typeparam name="T">Type of value.</typeparam>
167+
/// <param name="value">successful value held in the result.</param>
168+
/// <returns>Result.</returns>
169169
public static Result<T> Ok<T>(T value)
170170
{
171171
return new Result<T>(value, true, null);

src/IO.Ably.Shared/Transport/States/Connection/ConnectionDisconnectedState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public ConnectionDisconnectedState(IConnectionContext context, ErrorInfo error,
3232

3333
public override RealtimeCommand Connect()
3434
{
35-
return SetConnectingStateCommand.Create().TriggeredBy("DisconnectedState.Connect()");
35+
return SetConnectingStateCommand.Create().TriggeredBy("DisconnectedState.Connect()");
3636
}
3737

3838
public override void Close()

src/IO.Ably.Tests.Shared/AuthTests/AuthorizationTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ public class AuthorizationTests : MockHttpRestSpecs
1717
{
1818
internal readonly AblyResponse DummyTokenResponse = new AblyResponse
1919
{
20-
Type = ResponseType.Json,
21-
TextResponse = "{ \"access_token\": {}}"
20+
Type = ResponseType.Json, TextResponse = "{ \"access_token\": {}}"
2221
};
2322

2423
internal override AblyResponse DefaultResponse => DummyTokenResponse;

0 commit comments

Comments
 (0)