mirror of
https://salsa.debian.org/mdosch/go-sendxmpp
synced 2024-11-18 21:25:31 +00:00
[golangci-lint]: regexp: Simplify code.
This commit is contained in:
parent
94e82bdef5
commit
fd3d9f0d9f
4
ox.go
4
ox.go
@ -341,7 +341,7 @@ func oxGetPrivKeyLoc(jid string) (string, error) {
|
||||
}
|
||||
dataDir = homeDir + "/.local/share"
|
||||
}
|
||||
dataDir = dataDir + "/go-sendxmpp/oxprivkeys/"
|
||||
dataDir += "/go-sendxmpp/oxprivkeys/"
|
||||
if _, err = os.Stat(dataDir); os.IsNotExist(err) {
|
||||
err = os.MkdirAll(dataDir, 0700)
|
||||
if err != nil {
|
||||
@ -374,7 +374,7 @@ func oxGetPubKeyLoc(fingerprint string) (string, error) {
|
||||
}
|
||||
dataDir = homeDir + "/.local/share"
|
||||
}
|
||||
dataDir = dataDir + "/go-sendxmpp/oxpubkeys/"
|
||||
dataDir += "/go-sendxmpp/oxpubkeys/"
|
||||
if _, err = os.Stat(dataDir); os.IsNotExist(err) {
|
||||
err = os.MkdirAll(dataDir, 0700)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user