Repository: incubator-mynewt-newt
Updated Branches:
  refs/heads/develop 838d6fc7a -> 74d85d4a7


newtmgr - gofmt changes.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/74d85d4a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/74d85d4a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/74d85d4a

Branch: refs/heads/develop
Commit: 74d85d4a7bf8fe1b5e151b69d78d862bd462bfd5
Parents: 838d6fc
Author: Christopher Collins <ccoll...@apache.org>
Authored: Wed Oct 12 15:25:25 2016 -0700
Committer: Christopher Collins <ccoll...@apache.org>
Committed: Wed Oct 12 15:25:25 2016 -0700

----------------------------------------------------------------------
 newtmgr/protocol/imagesplit.go | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/74d85d4a/newtmgr/protocol/imagesplit.go
----------------------------------------------------------------------
diff --git a/newtmgr/protocol/imagesplit.go b/newtmgr/protocol/imagesplit.go
index 7e49b19..05435e9 100644
--- a/newtmgr/protocol/imagesplit.go
+++ b/newtmgr/protocol/imagesplit.go
@@ -77,7 +77,11 @@ func ParseSplitMode(str string) (SplitMode, error) {
        return NONE, util.NewNewtError("Invalid value for Split Mode %v" + str)
 }
 
-var splitStatus = [...]string{NOT_APPLICABLE: "N/A", NOT_MATCHING: 
"Non-matching", MATCHING: "matching"}
+var splitStatus = [...]string{
+       NOT_APPLICABLE: "N/A",
+       NOT_MATCHING:   "Non-matching",
+       MATCHING:       "matching",
+}
 
 /* is the enum valid */
 func (sm SplitStatus) Valid() bool {
@@ -138,7 +142,7 @@ func (s *Split) EncoderWriteRequest() (*NmgrReq, error) {
 
        data := make([]byte, 0)
        enc := codec.NewEncoderBytes(&data, new(codec.JsonHandle))
-       err := enc.Encode(s);
+       err := enc.Encode(s)
        if err != nil {
                return nil, err
        }

Reply via email to