Skip to content

Commit 98df5d9

Browse files
authored
make lint happy
1 parent 4e88c24 commit 98df5d9

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

plugin/movies/main.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func getMovieList(mode string) (movieList []movieInfo, err error) {
171171
return
172172
}
173173
if mode != "今日电影" {
174-
movieList[i].ComingTitle = movieInfo.MovieInfo.ComingTitle
174+
movieInfo.MovieInfo.ComingTitle = movieList[i].ComingTitle
175175
}
176176
movieList[i] = movieInfo.MovieInfo
177177
}
@@ -182,9 +182,8 @@ func getMovieList(mode string) (movieList []movieInfo, err error) {
182182
}
183183
if mode == "今日电影" {
184184
return movieList[i].Watched > movieList[j].Watched
185-
} else {
186-
return movieList[i].Wish > movieList[j].Wish
187185
}
186+
return movieList[i].Wish > movieList[j].Wish
188187
})
189188
return movieList, nil
190189
}

0 commit comments

Comments
 (0)