Skip to content

Commit

Permalink
remove print line, go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Karan Goel committed Apr 5, 2016
1 parent 425022c commit 0cb2bcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions joe.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"os"
"path"
"path/filepath"
"strings"
"sort"
"strings"
)

const joe string = `
Expand Down Expand Up @@ -38,7 +38,7 @@ func findGitignores() (a map[string]string, err error) {
}

filelist := make(map[string]string)
filepath.Walk(dataPath, func (filepath string, info os.FileInfo, err error) error {
filepath.Walk(dataPath, func(filepath string, info os.FileInfo, err error) error {
if strings.HasSuffix(info.Name(), ".gitignore") {
name := strings.ToLower(strings.Replace(info.Name(), ".gitignore", "", 1))
filelist[name] = filepath
Expand Down Expand Up @@ -74,7 +74,6 @@ func generate(args string) {
output := ""
for _, name := range names {
if filepath, ok := gitignores[strings.ToLower(name)]; ok {
fmt.Println(name + " " +filepath)
bytes, err := ioutil.ReadFile(filepath)
if err == nil {
output += "#### " + name + " ####\n"
Expand Down
4 changes: 2 additions & 2 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package main

import (
"archive/zip"
"github.com/termie/go-shutil"
"io"
"net/http"
"os"
"path"
"path/filepath"
"github.com/termie/go-shutil"
)

func unzip(archive, target string) (err error) {
Expand Down Expand Up @@ -106,7 +106,7 @@ func RemoveContents(dir string) (err error) {
}
err = os.Remove(dir)
if err != nil {
return err
return err
}
return nil
}
Expand Down

0 comments on commit 0cb2bcb

Please sign in to comment.