Skip to content

Commit

Permalink
handle with linter
Browse files Browse the repository at this point in the history
  • Loading branch information
JunNishimura committed Jun 30, 2024
1 parent ad0c8be commit ffa54db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions evaluator/evaluator.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,6 @@ func isError(obj object.Object) bool {
return false
}

func isNil(obj object.Object) bool {
return obj == Nil
}

func isSymbol(obj object.Object) bool {
return obj.Type() == object.SYMBOL_OBJ
}

func evalProgram(program *ast.Program, env *object.Environment) object.Object {
var result object.Object

Expand Down
4 changes: 2 additions & 2 deletions repl/repl.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ func Start(in io.Reader, out io.Writer) {

evaluated := evaluator.Eval(program, env)
if evaluated != nil {
io.WriteString(out, evaluated.Inspect())
io.WriteString(out, "\n")
_, _ = io.WriteString(out, evaluated.Inspect())
_, _ = io.WriteString(out, "\n")
}
}
}
Expand Down

0 comments on commit ffa54db

Please sign in to comment.