Skip to content

Commit 4e392ea

Browse files
committed
rename
Signed-off-by: a1012112796 <[email protected]>
1 parent 2c81c22 commit 4e392ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/actions/workflows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func init() {
2929
}
3030
}
3131

32-
func IsWorkFlow(path string) bool {
32+
func IsWorkflow(path string) bool {
3333
if (!strings.HasSuffix(path, ".yaml")) && (!strings.HasSuffix(path, ".yml")) {
3434
return false
3535
}

routers/web/repo/view.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ func renderFile(ctx *context.Context, entry *git.TreeEntry, treeLink, rawLink st
351351
if issueConfigErr != nil {
352352
ctx.Data["FileError"] = strings.TrimSpace(issueConfigErr.Error())
353353
}
354-
} else if actions.IsWorkFlow(ctx.Repo.TreePath) {
354+
} else if actions.IsWorkflow(ctx.Repo.TreePath) {
355355
content, err := actions.GetContentFromEntry(entry)
356356
if err != nil {
357357
log.Error("actions.GetContentFromEntry: %v", err)

0 commit comments

Comments
 (0)