Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Code cleanup. Cleaned up unnecessary null checks and unused parameters. #44

Merged
merged 5 commits into from
Jul 21, 2016

Conversation

glang
Copy link
Contributor

@glang glang commented Jul 1, 2016

Code cleanup. Cleaned up unnecessary null checks and unused parameters.

@@ -359,7 +359,7 @@ public static String fetchAndAddToMapApexClassIdBasedOnName(PartnerConnection co
ApexUnitUtils.shutDownWithDebugLog(e, ConnectionHandler
.logConnectionException(e, connection, soql));
}
if (queryResult == null || (queryResult.getRecords() != null && queryResult.getRecords().length <= 0)) {
if (queryResult == null || queryResult.getRecords().length <= 0) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a mistake. I will fix this tomorrow.

@adarsh-ramakrishna-sfdc
Copy link
Contributor

@glang generateHTMLReportTest failed on Travis. Did you test this locally? and on the internal jenkins instance?

@adarsh-ramakrishna-sfdc
Copy link
Contributor

adarsh-ramakrishna-sfdc commented Jul 15, 2016

As long as you confirm that all tests pass, 👍 from me

@glang
Copy link
Contributor Author

glang commented Jul 16, 2016

@adarsh-ramakrishna-sfdc the generateHTMLReportTest is a strange one. It fails and passes randomly on Travis as far as I can tell. I have tested it locally a couple of times and it always passes. I will check on jenkins on Monday, as I think my stage-jenkins job that I normally use has been renamed or removed. I'll ask @pmedapuram about that.

@adarsh-ramakrishna-sfdc
Copy link
Contributor

Changes looks good to me 👍
The second reviewer can review and merge the PR

@glang
Copy link
Contributor Author

glang commented Jul 19, 2016

@pmedapuram Hi, would you mind doing the second review for this pull request for me?

@pmedapuram
Copy link
Collaborator

👍

@pmedapuram pmedapuram merged commit ceee4cb into master Jul 21, 2016
@pmedapuram pmedapuram deleted the refactoring branch July 21, 2016 21:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants