mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 14:22:25 -05:00 
			
		
		
		
	[chore] update latest deps, ensure readme up to date (#1873)
* [chore] update latest deps, ensure readme up to date * remove double entry
This commit is contained in:
		
					parent
					
						
							
								f1b70cc00f
							
						
					
				
			
			
				commit
				
					
						b401bd1ccb
					
				
			
		
					 156 changed files with 11730 additions and 2842 deletions
				
			
		
							
								
								
									
										10
									
								
								vendor/go.opentelemetry.io/otel/sdk/internal/env/env.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								vendor/go.opentelemetry.io/otel/sdk/internal/env/env.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -70,8 +70,8 @@ const ( | |||
| // returned. | ||||
| func firstInt(defaultValue int, keys ...string) int { | ||||
| 	for _, key := range keys { | ||||
| 		value, ok := os.LookupEnv(key) | ||||
| 		if !ok { | ||||
| 		value := os.Getenv(key) | ||||
| 		if value == "" { | ||||
| 			continue | ||||
| 		} | ||||
| 
 | ||||
|  | @ -88,10 +88,10 @@ func firstInt(defaultValue int, keys ...string) int { | |||
| } | ||||
| 
 | ||||
| // IntEnvOr returns the int value of the environment variable with name key if | ||||
| // it exists and the value is an int. Otherwise, defaultValue is returned. | ||||
| // it exists, it is not empty, and the value is an int. Otherwise, defaultValue is returned. | ||||
| func IntEnvOr(key string, defaultValue int) int { | ||||
| 	value, ok := os.LookupEnv(key) | ||||
| 	if !ok { | ||||
| 	value := os.Getenv(key) | ||||
| 	if value == "" { | ||||
| 		return defaultValue | ||||
| 	} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue