Skip to content

Commit 20484fa

Browse files
committed
Fix lint
1 parent 65e0aef commit 20484fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/templates/dynamic.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ var (
2727
bodyTemplates = template.New("")
2828
)
2929

30+
// GetAsset returns asset content via name
3031
func GetAsset(name string) ([]byte, error) {
3132
bs, err := ioutil.ReadFile(filepath.Join(setting.CustomPath, name))
3233
if err != nil && !os.IsNotExist(err) {
@@ -38,6 +39,7 @@ func GetAsset(name string) ([]byte, error) {
3839
return ioutil.ReadFile(filepath.Join(setting.StaticRootPath, name))
3940
}
4041

42+
// GetAssetNames returns assets list
4143
func GetAssetNames() []string {
4244
tmpls := getDirAssetNames(filepath.Join(setting.CustomPath, "templates"))
4345
tmpls2 := getDirAssetNames(filepath.Join(setting.StaticRootPath, "templates"))

0 commit comments

Comments
 (0)