summaryrefslogtreecommitdiff
path: root/cmd/ponzu/options.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-11-02 21:24:47 -0700
committerSteve Manuel <nilslice@gmail.com>2016-11-02 21:24:47 -0700
commit689bd8b70c1b4fe53dc94ca1884755f45a0c25c9 (patch)
treea4a7e8fb2990d2e3dbe618a9d44a3da6bec5d4bf /cmd/ponzu/options.go
parente8c1b1b789c11650911f424394945f1510c28340 (diff)
testing newline catch and reassign answer var
Diffstat (limited to 'cmd/ponzu/options.go')
-rw-r--r--cmd/ponzu/options.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/ponzu/options.go b/cmd/ponzu/options.go
index 6a0af28..3cd4910 100644
--- a/cmd/ponzu/options.go
+++ b/cmd/ponzu/options.go
@@ -169,7 +169,7 @@ func newProjectInDir(path string) error {
var answer string
_, err := fmt.Scanf("%s\n", &answer)
if err.Error() == "unexpected newline" {
- return err
+ answer = ""
} else if err != nil {
return err
}