aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2019-10-08 16:21:40 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2019-10-08 16:21:40 -0400
commit2bacc55712e50ad64bb2b641b9868b3bc8904273 (patch)
tree782e2fb0541bf09c5bdf57f5325a9abfb7d2c49a /src
parent308c8f726b2a68d4b1e1a75d06650f566b76a177 (diff)
downloadjscu_refactor-master.tar.gz
Diffstat (limited to 'src')
-rw-r--r--src/edu/stsci/jscu/DataConfig.groovy8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/edu/stsci/jscu/DataConfig.groovy b/src/edu/stsci/jscu/DataConfig.groovy
index 9d2c909..5b098b9 100644
--- a/src/edu/stsci/jscu/DataConfig.groovy
+++ b/src/edu/stsci/jscu/DataConfig.groovy
@@ -18,10 +18,10 @@ class DataConfig implements Serializable {
DataConfig(String direction = "upload") {
this.direction = direction.toLowerCase()
- //if (!this.isUpload() && !this.isDownload()) {
- // throw new Exception("DataConfig.direction argument must be 'upload'"
- // + "or 'download' (got: ${this.direction})")
- //}
+ if (!this.isUpload() && !this.isDownload()) {
+ throw new Exception("DataConfig.direction argument must be 'upload'"
+ + "or 'download' (got: ${this.direction})")
+ }
}
@NonCPS