mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-15 13:42:26 +03:00
Add staticcheck lint (#245)
This commit is contained in:
parent
584acbe9a9
commit
340a84cdc0
6 changed files with 9 additions and 7 deletions
|
@ -190,7 +190,7 @@ func getMediaURI(host, endpoint, query string, components []string) string {
|
|||
func testUpload(host, filePath string) {
|
||||
fmt.Printf("==TESTING== upload %v to %v\n", filePath, host)
|
||||
file, err := os.Open(filePath)
|
||||
defer file.Close() // nolint: errcheck
|
||||
defer file.Close() // nolint: errcheck, staticcheck, megacheck
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue