mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	Code style fixes
This commit is contained in:
		@@ -71,9 +71,9 @@ func CreateOrUpdateIssueWatch(userID, issueID int64, isWatching bool) error {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// GetIssueWatch returns an issue watch by user and issue
 | 
					// GetIssueWatch returns an issue watch by user and issue
 | 
				
			||||||
func GetIssueWatch(userID, issueID int64) (iw *IssueWatch, exists bool, err error) {
 | 
					func GetIssueWatch(userID, issueID int64) (iw *IssueWatch, exists bool, err error) {
 | 
				
			||||||
	iw, exists, err = getIssueWatch(x, userID, issueID)
 | 
						return getIssueWatch(x, userID, issueID)
 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func getIssueWatch(e Engine, userID, issueID int64) (iw *IssueWatch, exists bool, err error) {
 | 
					func getIssueWatch(e Engine, userID, issueID int64) (iw *IssueWatch, exists bool, err error) {
 | 
				
			||||||
	iw = new(IssueWatch)
 | 
						iw = new(IssueWatch)
 | 
				
			||||||
	exists, err = e.
 | 
						exists, err = e.
 | 
				
			||||||
@@ -87,6 +87,7 @@ func getIssueWatch(e Engine, userID, issueID int64) (iw *IssueWatch, exists bool
 | 
				
			|||||||
func GetIssueWatchers(issueID int64) ([]*IssueWatch, error) {
 | 
					func GetIssueWatchers(issueID int64) ([]*IssueWatch, error) {
 | 
				
			||||||
	return getIssueWatchers(x, issueID)
 | 
						return getIssueWatchers(x, issueID)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func getIssueWatchers(e Engine, issueID int64) (watches []*IssueWatch, err error) {
 | 
					func getIssueWatchers(e Engine, issueID int64) (watches []*IssueWatch, err error) {
 | 
				
			||||||
	err = e.
 | 
						err = e.
 | 
				
			||||||
		Where("issue_id = ?", issueID).
 | 
							Where("issue_id = ?", issueID).
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user