mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-28 10:51:44 +01:00 
			
		
		
		
	Merge pull request #289 from juanfont/whitespace
This commit is contained in:
		
						commit
						052fccdc98
					
				
							
								
								
									
										6
									
								
								.github/workflows/lint.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/lint.yml
									
									
									
									
										vendored
									
									
								
							| @ -14,6 +14,12 @@ jobs: | ||||
|         with: | ||||
|           version: latest | ||||
| 
 | ||||
|           # Only block PRs on new problems. | ||||
|           # If this is not enabled, we will end up having PRs | ||||
|           # blocked because new linters has appared and other | ||||
|           # parts of the code is affected. | ||||
|           only-new-issues: true | ||||
| 
 | ||||
|   prettier-lint: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|  | ||||
							
								
								
									
										3
									
								
								app.go
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								app.go
									
									
									
									
									
								
							| @ -724,7 +724,8 @@ func readOrCreatePrivateKey(path string) (*key.MachinePrivate, error) { | ||||
| 		return nil, fmt.Errorf("failed to read private key file: %w", err) | ||||
| 	} | ||||
| 
 | ||||
| 	privateKeyEnsurePrefix := PrivateKeyEnsurePrefix(string(privateKey)) | ||||
| 	trimmedPrivateKey := strings.TrimSpace(string(privateKey)) | ||||
| 	privateKeyEnsurePrefix := PrivateKeyEnsurePrefix(trimmedPrivateKey) | ||||
| 
 | ||||
| 	var machineKey key.MachinePrivate | ||||
| 	if err = machineKey.UnmarshalText([]byte(privateKeyEnsurePrefix)); err != nil { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user