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

pruned deprecated code and code that shouldn't be maintained any longer #43

Merged
merged 1 commit into from
Jan 9, 2023

Conversation

johnabass
Copy link
Collaborator

This prunes out code we don't want any longer and code that duplicates existing functionality.

@sonarcloud
Copy link

sonarcloud bot commented Nov 30, 2022

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
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Nov 30, 2022

Codecov Report

Merging #43 (c8b98da) into main (c256584) will increase coverage by 0.42%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main      #43      +/-   ##
==========================================
+ Coverage   98.93%   99.35%   +0.42%     
==========================================
  Files          17       12       -5     
  Lines         657      467     -190     
==========================================
- Hits          650      464     -186     
+ Misses          6        2       -4     
  Partials        1        1              
Flag Coverage Δ
unittests 99.35% <ø> (+0.42%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
context.go 100.00% <ø> (+16.66%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Comment on lines -69 to -78

// GetDefaultLogger returns the default logger, which doesn't do anything.
func GetDefaultLogger(_ context.Context) *zap.Logger {
return Default()
}

// GetNilLogger returns nil.
func GetNilLogger(_ context.Context) *zap.Logger {
return nil
}
Copy link
Contributor

Choose a reason for hiding this comment

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

cool, I just removed these references from other servers

Comment on lines -13 to -16
// GetLoggerFunc is the function used to get a request-specific logger from
// its context.
type GetLoggerFunc func(context.Context) *zap.Logger

Copy link
Contributor

Choose a reason for hiding this comment

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

cool, I just removed this type from servers that were using it

Copy link
Contributor

@denopink denopink left a comment

Choose a reason for hiding this comment

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

lgtm! 🍻

@johnabass johnabass merged commit 8b020ba into main Jan 9, 2023
@johnabass johnabass deleted the hotfix/prune-redundant-code branch January 9, 2023 19:41
@denopink denopink mentioned this pull request Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants