diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-10-08 16:21:40 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-10-08 16:21:40 -0400 |
commit | 2bacc55712e50ad64bb2b641b9868b3bc8904273 (patch) | |
tree | 782e2fb0541bf09c5bdf57f5325a9abfb7d2c49a /src | |
parent | 308c8f726b2a68d4b1e1a75d06650f566b76a177 (diff) | |
download | jscu_refactor-master.tar.gz |
Diffstat (limited to 'src')
-rw-r--r-- | src/edu/stsci/jscu/DataConfig.groovy | 8 |
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 |