mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 00:12:25 -05:00 
			
		
		
		
	fix type checking
This commit is contained in:
		
					parent
					
						
							
								8014c9c5df
							
						
					
				
			
			
				commit
				
					
						11b18f986c
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -39,7 +39,7 @@ func (m *accountModule) accountGETHandler(c *gin.Context) { | ||||||
| 
 | 
 | ||||||
| 	targetAccount := &model.Account{} | 	targetAccount := &model.Account{} | ||||||
| 	if err := m.db.GetByID(targetAcctID, targetAccount); err != nil { | 	if err := m.db.GetByID(targetAcctID, targetAccount); err != nil { | ||||||
| 		if _, ok := err.(db.ErrNoEntries); !ok { | 		if _, ok := err.(db.ErrNoEntries); ok { | ||||||
| 			c.JSON(http.StatusNotFound, gin.H{"error":"Record not found"}) | 			c.JSON(http.StatusNotFound, gin.H{"error":"Record not found"}) | ||||||
| 			return | 			return | ||||||
| 		} else { | 		} else { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue