Skip to content

Commit

Permalink
Adds last check if editor was only opened
Browse files Browse the repository at this point in the history
Add check if editor was opened but secret was not provided.

Signed-off-by: Martin Dekov (VMware) <[email protected]>
  • Loading branch information
martindekov authored and alexellis committed Jul 6, 2018
1 parent 5212410 commit 772928d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ func Test_removeNewLine(t *testing.T) {
secret: `Example secret2 `,
expectedByte: `Example secret2 `,
},
{
secret: "\n",
expectedByte: "",
},
{
secret: "",
expectedByte: "",
Expand Down

0 comments on commit 772928d

Please sign in to comment.