mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-14 16:26:23 -07:00
Fix anti-patterns pointed out by DeepSource
But not the switch fallthroughs/expression lists, there's no benefit
This commit is contained in:
parent
497a3925e0
commit
55317504a1
17 changed files with 53 additions and 67 deletions
|
@ -145,7 +145,7 @@ func (board *Board) AbsolutePath(subpath ...string) string {
|
|||
|
||||
// WebPath returns a string that represents the file's path as accessible by a browser
|
||||
// fileType should be "boardPage", "threadPage", "upload", or "thumb"
|
||||
func (board *Board) WebPath(fileName string, fileType string) string {
|
||||
func (board *Board) WebPath(fileName, fileType string) string {
|
||||
var filePath string
|
||||
switch fileType {
|
||||
case "":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue