Browse Source

gofmt changes

pull/3/head
David Haukeness 5 years ago
parent
commit
c3104b3695
No known key found for this signature in database
GPG Key ID: A7F1091956853EF9
  1. 5
      mage.go
  2. 2
      main.go

5
mage.go

@ -5,12 +5,12 @@ package main @@ -5,12 +5,12 @@ package main
import (
"encoding/json"
"fmt"
"github.com/magefile/mage/mg"
"github.com/magefile/mage/sh"
"io/ioutil"
"net/http"
"os"
"strings"
"github.com/magefile/mage/sh"
"github.com/magefile/mage/mg"
)
// emoji related constants
@ -117,4 +117,3 @@ func BuildBeta() { @@ -117,4 +117,3 @@ func BuildBeta() {
mg.Deps(BuildEmoji)
sh.Run("go", "build", "-tags", "allcommands,showreactionscmd,emojiList")
}

2
main.go

@ -245,7 +245,7 @@ func stringRemainder(aStr, bStr string) string { @@ -245,7 +245,7 @@ func stringRemainder(aStr, bStr string) string {
var long, short string
//figure out which string is longer
switch {
case len(aStr) < len (bStr):
case len(aStr) < len(bStr):
short = aStr
long = bStr
default:

Loading…
Cancel
Save