Skip to content

Commit 05d9cff

Browse files
committed
break when really readed file contents
1 parent d2c515e commit 05d9cff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/repo/view.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -717,8 +717,8 @@ func checkCitationFile(ctx *context.Context, entry *git.TreeEntry) {
717717
} else {
718718
ctx.Data["CitiationExist"] = true
719719
ctx.PageData["citationFileContent"] = content
720+
break
720721
}
721-
break
722722
}
723723
}
724724
}

0 commit comments

Comments
 (0)