summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-07-13 21:13:28 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-07-13 21:13:28 (GMT)
commitad1bdf53d70e7aee7a092602526ab380452338ac (patch)
tree9cf49ac1f5b94615dc68a4a59406fce29a3eb280
parent49b85d32a9c5a56191fff6ab554d1d748fbf9baf (diff)
minor cleanup
-rw-r--r--rhimport/session.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/rhimport/session.go b/rhimport/session.go
index b0031b1..f260aaa 100644
--- a/rhimport/session.go
+++ b/rhimport/session.go
@@ -118,8 +118,7 @@ func sessionRun(ctx Context, done chan<- Result) {
return
}
- err = NormalizeFile(&ctx)
- if err != nil {
+ if err = NormalizeFile(&ctx); err != nil {
done <- Result{ResponseCode: http.StatusInternalServerError, ErrorString: err.Error()}
return
}