From 8c9c376e352e9166d2389a1fccc700e5c37bdf79 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Mon, 26 Jan 2015 00:04:02 -0500 Subject: [PATCH] Exclude temp *~ files --- code.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code.go b/code.go index 28e14f9..092d548 100644 --- a/code.go +++ b/code.go @@ -38,8 +38,8 @@ func findProjects() map[string]User { uname := pparts[2] fname := filepath.Base(path) - // Exclude certain files - if strings.HasPrefix(fname, ".") || strings.HasSuffix(fname, ".log") { + // Exclude certain file names + if strings.HasPrefix(fname, ".") || strings.HasSuffix(fname, ".log") || strings.HasSuffix(fname, "~") { continue }