@@ -3,7 +3,6 @@ package pull
3
3
import (
4
4
"context"
5
5
"encoding/json"
6
- "fmt"
7
6
"io"
8
7
"io/ioutil"
9
8
"net/http"
@@ -147,19 +146,19 @@ func (pullService *pullService) findRelevantReleases() ([]string, error) {
147
146
log .Debugf ("Found %s." , reference .Name ().String ())
148
147
commit , err := localRepository .CommitObject (reference .Hash ())
149
148
if err != nil {
150
- return errors .Wrap (err , fmt . Sprintf ( "Error loading commit %s for reference %s." , reference .Hash (), reference .Name ().String () ))
149
+ return errors .Wrapf (err , "Error loading commit %s for reference %s." , reference .Hash (), reference .Name ().String ())
151
150
}
152
151
file , err := commit .File (defaultConfigurationPath )
153
152
if err != nil {
154
153
if err == object .ErrFileNotFound {
155
154
log .Debugf ("Ignoring reference %s as it does not have a default configuration." , reference .Name ().String ())
156
155
return nil
157
156
}
158
- return errors .Wrap (err , fmt . Sprintf ( "Error loading default configuration file from commit %s for reference %s." , reference .Hash (), reference .Name ().String () ))
157
+ return errors .Wrapf (err , "Error loading default configuration file from commit %s for reference %s." , reference .Hash (), reference .Name ().String ())
159
158
}
160
159
content , err := file .Contents ()
161
160
if err != nil {
162
- return errors .Wrap (err , fmt . Sprintf ( "Error reading default configuration file content from commit %s for reference %s." , reference .Hash (), reference .Name ().String () ))
161
+ return errors .Wrapf (err , "Error reading default configuration file content from commit %s for reference %s." , reference .Hash (), reference .Name ().String ())
163
162
}
164
163
configuration , err := actionconfiguration .Parse (content )
165
164
if err != nil {
0 commit comments