Merge pull request #115 from hashicorp/phinze/fmtcmd-remove-extra-newline
fmtcmd: Remove extra newline
This commit is contained in:
commit
9a905a34e6
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user