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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
// Files should end with newlines
|
|
||||||
res = append(res, []byte("\n")...)
|
|
||||||
|
|
||||||
if !bytes.Equal(src, res) {
|
if !bytes.Equal(src, res) {
|
||||||
// formatting has changed
|
// 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
|
// 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
|
// and red CI is making it harder to process other bugs, so ignore until
|
||||||
// we get around to fixing them.
|
// we get around to fixing them.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user