We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code triggers rule S2681 (Multiline blocks should be enclosed in curly braces) on the 'try {' line. Obviously a FP. See Issue on peach
using System; namespace MyLibrary { public class MyClass { internal static void ReadBytesAsync ( this Stream stream, int length, Action<byte[]> completed, Action<Exception> error) { var buffer = new byte[length]; stream.BeginRead ( buffer, 0, length, ar => { try { var len = stream.EndRead (ar); var bytes = len < 1 ? new byte[0] : len < length ? stream.readBytes (buffer, len, length - len) : buffer; if (completed != null) completed (bytes); } catch (Exception ex) { if (error != null) error (ex); } }, null); } } }
The text was updated successfully, but these errors were encountered:
Duplicates #264
Sorry, something went wrong.
No branches or pull requests
The following code triggers rule S2681 (Multiline blocks should be enclosed in curly braces) on the 'try {' line. Obviously a FP.
See Issue on peach
The text was updated successfully, but these errors were encountered: