mirror of
				https://github.com/h44z/wg-portal.git
				synced 2025-11-03 23:56:18 +00:00 
			
		
		
		
	chore: no need to use fmt.Sprintf (#190)
This commit is contained in:
		@@ -92,7 +92,7 @@ func (i *Interface) CopyCalculatedAttributes(src *Interface) {
 | 
			
		||||
func (i *Interface) GetConfigFileName() string {
 | 
			
		||||
	reg := regexp.MustCompile("[^a-zA-Z0-9-_]+")
 | 
			
		||||
 | 
			
		||||
	filename := fmt.Sprintf("%s", internal.TruncateString(string(i.Identifier), 8))
 | 
			
		||||
	filename := internal.TruncateString(string(i.Identifier), 8)
 | 
			
		||||
	filename = reg.ReplaceAllString(filename, "")
 | 
			
		||||
	filename += ".conf"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user