mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	Merge pull request #235 from lunny/lunny/golint_modules_user
golint fixed for modules/user
This commit is contained in:
		@@ -6,6 +6,7 @@ package user
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import "os"
 | 
					import "os"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// CurrentUsername return current login OS user name
 | 
				
			||||||
func CurrentUsername() string {
 | 
					func CurrentUsername() string {
 | 
				
			||||||
	curUserName := os.Getenv("USER")
 | 
						curUserName := os.Getenv("USER")
 | 
				
			||||||
	if len(curUserName) > 0 {
 | 
						if len(curUserName) > 0 {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user