-
Notifications
You must be signed in to change notification settings - Fork 815
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
Staticcheck cleanup #4751
Staticcheck cleanup #4751
Changes from 1 commit
0d13208
5ed4aee
b2d393a
de43cb0
aff55fc
bf3a603
b12ec6e
71dc77f
ab75516
b80849d
e1f8e61
a03daba
f74777a
aecde22
9d59bd8
aaf593a
d6ffdbd
e6d8a74
030d974
4d895a9
64384eb
f1350d4
30bf124
a1e55db
7158bb6
c00d8b6
581a610
952f9dd
fd03d0d
ce4e2cd
25e371f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,7 +68,6 @@ type ( | |
s3cli s3iface.S3API | ||
// only set in test code | ||
historyIterator archiver.HistoryIterator | ||
config *config.S3Archiver | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. apparently this config is now contained in the |
||
} | ||
|
||
getHistoryToken struct { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,6 @@ | |
package esql | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/xwb1989/sqlparser" | ||
) | ||
|
||
|
@@ -85,11 +83,3 @@ const ( | |
TieBreakerOrder = "desc" | ||
StartTimeOrder = "desc" | ||
) | ||
|
||
// DEBUG usage | ||
//nolint | ||
func print(v interface{}) { | ||
fmt.Println("==============") | ||
fmt.Println(v) | ||
fmt.Println("==============") | ||
} | ||
Comment on lines
-91
to
-95
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. honestly I wonder if we can find a linter to just ban There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Quickly searched for such usages. Majority of the comes in CLI or in tests. Those are probably valid uses. |
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.
unused or something? afaik this is correct for BigQuery-style datastores
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.
Yeah this is unused.