@@ -79,42 +79,42 @@ func NewActualStateEntry(system System, absPath AbsPath, info os.FileInfo, err e
7979 }
8080}
8181
82- // EntryState returns d 's entry state.
82+ // EntryState returns s 's entry state.
8383func (s * ActualStateAbsent ) EntryState () (* EntryState , error ) {
8484 return & EntryState {
8585 Type : EntryStateTypeRemove ,
8686 }, nil
8787}
8888
89- // Path returns d 's path.
89+ // Path returns s 's path.
9090func (s * ActualStateAbsent ) Path () AbsPath {
9191 return s .absPath
9292}
9393
94- // Remove removes d .
94+ // Remove removes s .
9595func (s * ActualStateAbsent ) Remove (system System ) error {
9696 return nil
9797}
9898
99- // EntryState returns d 's entry state.
99+ // EntryState returns s 's entry state.
100100func (s * ActualStateDir ) EntryState () (* EntryState , error ) {
101101 return & EntryState {
102102 Type : EntryStateTypeDir ,
103103 Mode : os .ModeDir | s .perm ,
104104 }, nil
105105}
106106
107- // Path returns d 's path.
107+ // Path returns s 's path.
108108func (s * ActualStateDir ) Path () AbsPath {
109109 return s .absPath
110110}
111111
112- // Remove removes d .
112+ // Remove removes s .
113113func (s * ActualStateDir ) Remove (system System ) error {
114114 return system .RemoveAll (s .absPath )
115115}
116116
117- // EntryState returns d 's entry state.
117+ // EntryState returns s 's entry state.
118118func (s * ActualStateFile ) EntryState () (* EntryState , error ) {
119119 contents , err := s .Contents ()
120120 if err != nil {
@@ -132,17 +132,17 @@ func (s *ActualStateFile) EntryState() (*EntryState, error) {
132132 }, nil
133133}
134134
135- // Path returns d 's path.
135+ // Path returns s 's path.
136136func (s * ActualStateFile ) Path () AbsPath {
137137 return s .absPath
138138}
139139
140- // Remove removes d .
140+ // Remove removes s .
141141func (s * ActualStateFile ) Remove (system System ) error {
142142 return system .RemoveAll (s .absPath )
143143}
144144
145- // EntryState returns d 's entry state.
145+ // EntryState returns s 's entry state.
146146func (s * ActualStateSymlink ) EntryState () (* EntryState , error ) {
147147 linkname , err := s .Linkname ()
148148 if err != nil {
@@ -159,12 +159,12 @@ func (s *ActualStateSymlink) EntryState() (*EntryState, error) {
159159 }, nil
160160}
161161
162- // Path returns d 's path.
162+ // Path returns s 's path.
163163func (s * ActualStateSymlink ) Path () AbsPath {
164164 return s .absPath
165165}
166166
167- // Remove removes d .
167+ // Remove removes s .
168168func (s * ActualStateSymlink ) Remove (system System ) error {
169169 return system .RemoveAll (s .absPath )
170170}
0 commit comments