-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
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
Improve Code Quality 2 #799
Conversation
ensures that an equals overload isn't use, and we don't compare structs
@EliotJones @BobLd Ready for feedback / review. |
@iamcarbon 2 comments, only one needs an update |
@@ -22,8 +22,8 @@ public static byte[] Decode(byte[] inputBytes, int predictor, int colors, int bi | |||
int bitsPerPixel = colors * bitsPerComponent; | |||
int bytesPerPixel = (bitsPerPixel + 7) / 8; | |||
int rowlength = (columns * bitsPerPixel + 7) / 8; | |||
byte[] actline = new byte[rowlength]; | |||
byte[] lastline = new byte[rowlength]; | |||
var actline = new byte[rowlength]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's avoid these var
changes, they don't add much value and add noise to the PR (leave them as is for the PR though)
@@ -1,10 +1,10 @@ | |||
namespace UglyToad.PdfPig.Parser.Parts | |||
{ | |||
using Core; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please keep System first
This PR: