mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Use Go 1.21 and update dependencies (#26878)
To make sure Gitea's next release's lifecycle could have active Golang support. And min/max are builtin now.
This commit is contained in:
		| @@ -60,22 +60,6 @@ func OptionalBoolParse(s string) OptionalBool { | ||||
| 	return OptionalBoolOf(b) | ||||
| } | ||||
|  | ||||
| // Max max of two ints | ||||
| func Max(a, b int) int { | ||||
| 	if a < b { | ||||
| 		return b | ||||
| 	} | ||||
| 	return a | ||||
| } | ||||
|  | ||||
| // Min min of two ints | ||||
| func Min(a, b int) int { | ||||
| 	if a > b { | ||||
| 		return b | ||||
| 	} | ||||
| 	return a | ||||
| } | ||||
|  | ||||
| // IsEmptyString checks if the provided string is empty | ||||
| func IsEmptyString(s string) bool { | ||||
| 	return len(strings.TrimSpace(s)) == 0 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 wxiaoguang
					wxiaoguang