Merge pull request #115 from hashicorp/phinze/fmtcmd-remove-extra-newline

fmtcmd: Remove extra newline
This commit is contained in:
Paul Hinze 2016-04-26 17:13:00 -05:00
commit 9a905a34e6
2 changed files with 1 additions and 3 deletions

View File

@ -60,8 +60,6 @@ func processFile(filename string, in io.Reader, out io.Writer, stdin bool, opts
if err != nil {
return err
}
// Files should end with newlines
res = append(res, []byte("\n")...)
if !bytes.Equal(src, res) {
// formatting has changed

View File

@ -1,4 +1,4 @@
// +build -windows
// +build !windows
// TODO(jen20): These need fixing on Windows but fmt is not used right now
// and red CI is making it harder to process other bugs, so ignore until
// we get around to fixing them.