Skip to content

Commit d536cae

Browse files
committed
gofmt
1 parent d7e6d0a commit d536cae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sssaas-golang.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import (
44
"bufio"
55
"encoding/json"
66
"errors"
7+
"fmt"
78
"github.com/SSSaaS/sssa-golang"
89
"gopkg.in/yaml.v2"
910
"io/ioutil"
1011
"net/http"
11-
"strconv"
1212
"os"
1313
"sort"
14+
"strconv"
1415
"sync"
15-
"fmt"
1616
"time"
1717
)
1818

@@ -59,7 +59,7 @@ func FromConfig(obj Config) (string, error) {
5959
line, err := r.ReadString('\n')
6060

6161
for err == nil {
62-
last := len(line)-1
62+
last := len(line) - 1
6363
share := line[:last]
6464

6565
if sssa.IsValidShare(share) {
@@ -116,7 +116,7 @@ func GetSecret(endpoints []string, shares []string, minimum int, timeout int) (s
116116
}
117117

118118
if res.StatusCode != 200 {
119-
global_err = append(global_err, errors.New(strconv.Itoa(res.StatusCode) + ":" + res.Status))
119+
global_err = append(global_err, errors.New(strconv.Itoa(res.StatusCode)+":"+res.Status))
120120

121121
if !done {
122122
wg.Done()

0 commit comments

Comments
 (0)