fix var
This commit is contained in:
		
							parent
							
								
									8138733bd1
								
							
						
					
					
						commit
						9464d393e3
					
				| @ -10,8 +10,6 @@ import ( | |||||||
| 	townUser "git.tilde.town/tildetown/town/user" | 	townUser "git.tilde.town/tildetown/town/user" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| const requestPath = "/town/requests" |  | ||||||
| 
 |  | ||||||
| func _main(args []string) error { | func _main(args []string) error { | ||||||
| 	currentUser, err := user.Current() | 	currentUser, err := user.Current() | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| @ -28,12 +26,12 @@ func _main(args []string) error { | |||||||
| 
 | 
 | ||||||
| 	errs := []error{} | 	errs := []error{} | ||||||
| 
 | 
 | ||||||
| 	err = request.ProcessGitea(requestPath) | 	err = request.ProcessGitea(request.RequestPath) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		errs = append(errs, err) | 		errs = append(errs, err) | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	err = request.ProcessGemini(requestPath) | 	err = request.ProcessGemini(request.RequestPath) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		errs = append(errs, err) | 		errs = append(errs, err) | ||||||
| 	} | 	} | ||||||
|  | |||||||
| @ -25,7 +25,7 @@ func ProcessGitea(rp string) error { | |||||||
| 		return errors.New("need GITEA_TOKEN") | 		return errors.New("need GITEA_TOKEN") | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	gtPath := filepath.Join(requestPath, "gitea") | 	gtPath := filepath.Join(RequestPath, "gitea") | ||||||
| 
 | 
 | ||||||
| 	files, err := ioutil.ReadDir(gtPath) | 	files, err := ioutil.ReadDir(gtPath) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
|  | |||||||
| @ -1 +1,3 @@ | |||||||
| package request | package request | ||||||
|  | 
 | ||||||
|  | const RequestPath = "/town/requests" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user