mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-15 13:17:53 -08:00
fix: fix typo and remove redundant parentheses
This commit is contained in:
parent
d1bd686674
commit
0b85aba8d8
|
@ -48,7 +48,7 @@ type SegmentWriter interface {
|
||||||
Init(props properties.Properties, env environment.Environment)
|
Init(props properties.Properties, env environment.Environment)
|
||||||
}
|
}
|
||||||
|
|
||||||
// SegmentStyle the syle of segment, for more information, see the constants
|
// SegmentStyle the style of segment, for more information, see the constants
|
||||||
type SegmentStyle string
|
type SegmentStyle string
|
||||||
|
|
||||||
// SegmentType the type of segment, for more information, see the constants
|
// SegmentType the type of segment, for more information, see the constants
|
||||||
|
@ -154,7 +154,7 @@ const (
|
||||||
func (segment *Segment) shouldIncludeFolder() bool {
|
func (segment *Segment) shouldIncludeFolder() bool {
|
||||||
cwdIncluded := segment.cwdIncluded()
|
cwdIncluded := segment.cwdIncluded()
|
||||||
cwdExcluded := segment.cwdExcluded()
|
cwdExcluded := segment.cwdExcluded()
|
||||||
return (cwdIncluded && !cwdExcluded)
|
return cwdIncluded && !cwdExcluded
|
||||||
}
|
}
|
||||||
|
|
||||||
func (segment *Segment) cwdIncluded() bool {
|
func (segment *Segment) cwdIncluded() bool {
|
||||||
|
|
Loading…
Reference in a new issue