diff --git a/serve.go b/serve.go index 25e52af..b2ff2d7 100644 --- a/serve.go +++ b/serve.go @@ -21,9 +21,7 @@ type FileServer struct { // NewFileServer initializes a FileServer. func NewFileServer(options ...Options) *FileServer { var opt Options - if len(options) == 0 { - opt = Options{} - } else { + if len(options) > 0 { opt = options[0] }