From 182247f5c830f93bfdb2a843a0ce3d394008c6d0 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 9 Dec 2021 17:53:59 +0100 Subject: global: apply gofumpt Signed-off-by: Jason A. Donenfeld --- conf/store.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'conf/store.go') diff --git a/conf/store.go b/conf/store.go index def94836..af253046 100644 --- a/conf/store.go +++ b/conf/store.go @@ -14,8 +14,10 @@ import ( "golang.zx2c4.com/wireguard/windows/conf/dpapi" ) -const configFileSuffix = ".conf.dpapi" -const configFileUnencryptedSuffix = ".conf" +const ( + configFileSuffix = ".conf.dpapi" + configFileUnencryptedSuffix = ".conf" +) func ListConfigNames() ([]string, error) { configFileDir, err := tunnelConfigurationsDirectory() @@ -40,7 +42,7 @@ func ListConfigNames() ([]string, error) { if err != nil { continue } - if info.Mode().Perm()&0444 == 0 { + if info.Mode().Perm()&0o444 == 0 { continue } configs[i] = name -- cgit v1.2.3-59-g8ed1b