From 0be9d74d161713dbf15c1d5e9fdd63cfada5ee0c Mon Sep 17 00:00:00 2001 From: toddlerya Date: Mon, 5 Nov 2018 22:50:19 +0800 Subject: [PATCH] fmt file.go && fix https://github.com/filebrowser/filebrowser/issues/556 --- lib/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/file.go b/lib/file.go index 7057594b..304cd96c 100644 --- a/lib/file.go +++ b/lib/file.go @@ -268,7 +268,7 @@ func (i *File) GetFileType(checkContent bool) error { End: // If the file type is text, save its content. - if i.Type == "text" && i.Size < 10240 { // Avoiding files that are too large causes browsers to crash + if i.Type == "text" && i.Size < 10240 { // Avoiding files that are too large causes browsers to crash if len(content) == 0 { content, err = ioutil.ReadFile(i.Path) if err != nil {