Skip to content

Commit

Permalink
Just Capped decode and encode for consistensy
Browse files Browse the repository at this point in the history
  • Loading branch information
jik18001 committed Apr 19, 2022
1 parent 65207c9 commit 6fd9b8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CTng/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"go.inferGopath": false
}
4 changes: 2 additions & 2 deletions CTng/GZip/Decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ func main() {

// Try to decode it
op := "decode"
result, err := decode(text)
result, err := Decode(text)
if err != nil {
// The only option left is to encode it!
op = "encode"
result, err = encode(text)
result, err = Encode(text)
if err != nil {
fmt.Println("Completely failed to do anything useful with that input")
return
Expand Down

0 comments on commit 6fd9b8d

Please sign in to comment.