Skip to content
Permalink
Browse files

Format: code

  • Loading branch information...
chenjiandongx committed May 5, 2019
1 parent e67f581 commit efed598bc07c75f8b2fce80045713a5ee7d66324
Showing with 1 addition and 2 deletions.
  1. +1 −2 templates/templates.go
@@ -25,7 +25,6 @@ func init() {
}
}


func LoadTemplates(loader http.FileSystem) {
var err error
BaseTpl, err = _bytesToString(loader.Open("base.html"))
@@ -39,7 +38,7 @@ func LoadTemplates(loader http.FileSystem) {
}
}

func _bytesToString(file http.File, err error) (string, error){
func _bytesToString(file http.File, err error) (string, error) {
content, err := ioutil.ReadAll(file)
return string(content), err
}

0 comments on commit efed598

Please sign in to comment.
You can’t perform that action at this time.