Skip to content

Commit

Permalink
Add missing null param checks
Browse files Browse the repository at this point in the history
  • Loading branch information
TcM1911 committed Dec 30, 2016
1 parent 2b6729f commit cef2be5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/note.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ var noteCmd = &cobra.Command{
Short: "View, edit and create a note.",
Long: `Displays the content of a note.`,
Run: func(cmd *cobra.Command, args []string) {
if len(args) != 1 {
cmd.Usage()
return
}
getNote(cmd, args)
},
}
Expand Down

0 comments on commit cef2be5

Please sign in to comment.