Przeglądaj źródła

Omit not needed end of slice

tags/v1.0.0
Andrea Spacca 5 lat temu
rodzic
commit
2f1de6fdb3
1 zmienionych plików z 2 dodań i 2 usunięć
  1. +2
    -2
      server/server.go

+ 2
- 2
server/server.go Wyświetl plik

@@ -111,7 +111,7 @@ func ProfileListener(s string) OptionFn {

func WebPath(s string) OptionFn {
return func(srvr *Server) {
if s[len(s)-1:len(s)] != "/" {
if s[len(s)-1:] != "/" {
s = s + string(filepath.Separator)
}

@@ -121,7 +121,7 @@ func WebPath(s string) OptionFn {

func TempPath(s string) OptionFn {
return func(srvr *Server) {
if s[len(s)-1:len(s)] != "/" {
if s[len(s)-1:] != "/" {
s = s + string(filepath.Separator)
}



Ładowanie…
Anuluj
Zapisz