Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Commit

Permalink
prefer comparing projects using reference equality
Browse files Browse the repository at this point in the history
  • Loading branch information
softprops authored and harrah committed Aug 5, 2010
1 parent aa75ecf commit 8db930f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbt/src/main/scala/sbt/Main.scala
Expand Up @@ -476,7 +476,7 @@ class xMain extends xsbti.AppMain
if(!isInteractive)
printCmd(InteractiveCommand, "Enters the sbt interactive shell")
}
private def listProject(p: Project, curr: Project) = printProject(if(p.name == curr.name) "\t* " else "\t ", p)
private def listProject(p: Project, curr: Project) = printProject(if(p eq curr) "\t* " else "\t ", p)
private def printProject(prefix: String, p: Project): Unit =
Console.println(prefix + p.name + " " + p.version)

Expand Down

0 comments on commit 8db930f

Please sign in to comment.