You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/09/25 13:13:26 UTC

[GitHub] mkiiskila commented on a change in pull request #98: res - remove type from res commands

mkiiskila commented on a change in pull request #98: res - remove type from res commands
URL: https://github.com/apache/mynewt-newtmgr/pull/98#discussion_r220184117
 
 

 ##########
 File path: nmxact/sesn/sesn_cfg.go
 ##########
 @@ -64,16 +64,6 @@ func (r ResourceType) String() string {
 	return resTypeMap[r]
 }
 
-func ParseResType(s string) (ResourceType, error) {
-	for r, n := range resTypeMap {
-		if s == n {
-			return r, nil
-		}
-	}
-
-	return ResourceType(0), fmt.Errorf("Unknown resource type: %s", s)
 
 Review comment:
   nmxact/sesn/sesn_cfg.go:23:2: imported and not used: "fmt"
   
   You'll need to remove 'fmt' import above.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services