Skip to content

Commit

Permalink
perf: extra call to hasCommand removed
Browse files Browse the repository at this point in the history
  • Loading branch information
lnu committed Dec 30, 2020
1 parent 253c1bf commit 765af8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/segment_language.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (l *language) string() string {
}

// call getVersion if displayVersion set in config
if l.props.getBool(DisplayVersion, true) && l.hasCommand() && l.getVersion() {
if l.props.getBool(DisplayVersion, true) && l.getVersion() {
return l.version
}
return ""
Expand Down

0 comments on commit 765af8e

Please sign in to comment.