Browse Source

fix: missing 1825 rule

pull/9186/head
Giuseppe Lippolis 4 years ago
parent
commit
a205926f3f
  1. 2
      src/Avalonia.DesignerSupport/Remote/Stubs.cs
  2. 2
      src/iOS/Avalonia.iOS/TextInputResponder.cs

2
src/Avalonia.DesignerSupport/Remote/Stubs.cs

@ -191,7 +191,7 @@ namespace Avalonia.DesignerSupport.Remote
public Task ClearAsync() => Task.CompletedTask;
public Task SetDataObjectAsync(IDataObject data) => Task.CompletedTask;
public Task<string[]> GetFormatsAsync() => Task.FromResult(new string[0]);
public Task<string[]> GetFormatsAsync() => Task.FromResult(Array.Empty<string>());
public Task<object> GetDataAsync(string format) => Task.FromResult((object)null);
}

2
src/iOS/Avalonia.iOS/TextInputResponder.cs

@ -405,7 +405,7 @@ partial class AvaloniaView
// TODO: Query from the input client
Logger.TryGet(LogEventLevel.Debug, ImeLog)?
.Log(null, "IUITextInput:GetSelectionRect");
return new UITextSelectionRect[0];
return Array.Empty<UITextSelectionRect>();
}
[Export("textStylingAtPosition:inDirection:")]

Loading…
Cancel
Save