From 2bacc55712e50ad64bb2b641b9868b3bc8904273 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 8 Oct 2019 16:21:40 -0400 Subject: blah --- src/edu/stsci/jscu/DataConfig.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 -- cgit