Skip to content

Commit

Permalink
removed checks and logs from brainfuck subpackage
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnathaniel committed Dec 12, 2020
1 parent 9b96ee3 commit 0f2729c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ func main() {
}

func parseArgs() string {
brainfuck.Log("RAW ARGS - ", os.Args)
var s string

if len(os.Args) < 2 {
Expand All @@ -33,14 +32,13 @@ func parseArgs() string {
s = os.Args[2]
}

brainfuck.Log("RAW STRING - ", s)
return s
}

func OpenFile(path string) string {
brainfuck.Log("getting file")
f, err := ioutil.ReadFile(path)
brainfuck.Check(err)

if err != nil {
panic(err)
}
return string(f)
}

0 comments on commit 0f2729c

Please sign in to comment.