Skip to content

Commit 7d3aaf8

Browse files
author
Artur Kh
committed
Minor changes
1 parent 9dc2240 commit 7d3aaf8

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import "testing"
55
func TestConfigUpdate(t *testing.T) {
66
c := ConfigNew()
77

8-
origApiKey := c.APIKey // 08ec43864e8131ab4f5778041eb663c67119b786
8+
origApiKey := c.APIKey
99
newApiKey := "newkey"
1010

1111
if err := c.Update(newApiKey); err != nil {

go-gist.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,7 @@ func list() error {
6767
}
6868

6969
func createOrUpdate(uid string, anonymous bool, public bool, desc string, gistType string, args []string) error {
70-
gist := &Gist{
71-
make(map[string]*File),
72-
desc,
73-
public,
74-
}
70+
gist := &Gist{make(map[string]*File), desc, public}
7571

7672
for _, name := range flag.Args() {
7773
content, err := ioutil.ReadFile(name)

0 commit comments

Comments
 (0)