Skip to content
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

Upgrade CI tools #392

Merged
merged 3 commits into from
Feb 24, 2023
Merged

Upgrade CI tools #392

merged 3 commits into from
Feb 24, 2023

Conversation

chlowell
Copy link
Collaborator

Upgrading CI to use the latest version of Go and linter. The upgraded linter flagged a method call that has no side effect and whose return value is discarded i.e., the call has no effect. I deleted this call because it's unnecessary in any case--there's no reason to update DeviceCodeResult.ExpiresOn because it's the moment at which the code expires, not the amount of time remaining until the code expires.

@chlowell chlowell added the GA label Feb 24, 2023
@chlowell chlowell marked this pull request as draft February 24, 2023 19:56
@rayluo
Copy link
Contributor

rayluo commented Feb 24, 2023

a method call that has no side effect and whose return value is discarded i.e., the call has no effect. I deleted this call because it's unnecessary in any case--there's no reason to update DeviceCodeResult.ExpiresOn because it's the moment at which the code expires, not the amount of time remaining until the code expires.

Makes sense. Agree with its removal. FWIW, that line was introduced in a 5000-line change PR. Perhaps it was meant to be a hack to simulate the expiration for testing.

@sonarcloud
Copy link

sonarcloud bot commented Feb 24, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@chlowell chlowell marked this pull request as ready for review February 24, 2023 23:06
@chlowell chlowell merged commit 79fd37d into dev Feb 24, 2023
@chlowell chlowell deleted the chlowell/golint-upgrade branch February 24, 2023 23:53
@rayluo rayluo mentioned this pull request Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants