Skip to content

Commit 680f2ee

Browse files
committed
fix lint errors
1 parent 9c4a37d commit 680f2ee

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

cmd/arcdps-log-uploader/dpsreports.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func doRequestInternal(callback func(status LogStatus), path string, logger *log
136136
func waitUntilUnbanned() {
137137
if rateLimitedUntil != nil {
138138
if rateLimitedUntil.After(time.Now()) {
139-
sub := rateLimitedUntil.Sub(time.Now())
139+
sub := time.Until(*rateLimitedUntil)
140140
log.Debugf("Waiting to be unblocked (in %v)", sub)
141141
<-time.After(sub)
142142
}

cmd/arcdps-log-uploader/ui.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -207,16 +207,6 @@ func checkBrowsable(tv *walk.TableView, model *ArcLogModel) bool {
207207
return false
208208
}
209209

210-
func createWindow(window MainWindow, err error) (*walk.MainWindow, error) {
211-
var w *walk.MainWindow
212-
window.AssignTo = &w
213-
err = window.Create()
214-
if err != nil {
215-
panic(err)
216-
}
217-
return w, err
218-
}
219-
220210
func onFilesDrop(files []string, model *ArcLogModel, prog *walk.ProgressBar, outputTextArea *walk.TextEdit) {
221211
for _, file := range files {
222212

0 commit comments

Comments
 (0)