Implement NewIodine() in a simpler way

This commit is contained in:
Harshavardhana
2015-07-15 18:39:17 -07:00
parent 8fa80fbf37
commit 25ada41480
21 changed files with 161 additions and 150 deletions
+3 -3
View File
@@ -101,7 +101,7 @@ func doDiffInRoutine(firstURL, secondURL string, recursive bool, ch chan diff) {
if err != nil {
ch <- diff{
message: "Failed to stat ‘" + firstURL + "’",
err: iodine.New(err, nil),
err: NewIodine(iodine.New(err, nil)),
}
return
}
@@ -109,7 +109,7 @@ func doDiffInRoutine(firstURL, secondURL string, recursive bool, ch chan diff) {
if err != nil {
ch <- diff{
message: "Failed to stat ‘" + secondURL + "’",
err: iodine.New(err, nil),
err: NewIodine(iodine.New(err, nil)),
}
return
}
@@ -120,7 +120,7 @@ func doDiffInRoutine(firstURL, secondURL string, recursive bool, ch chan diff) {
if err != nil {
ch <- diff{
message: "Unable to construct new URL from ‘" + secondURL + "’ using ‘" + firstURL,
err: iodine.New(err, nil),
err: NewIodine(iodine.New(err, nil)),
}
return
}