@@ -116,7 +116,7 @@ class GridFSSpec extends RequiresMongoDBISpec with FuturesSpec {
116
116
}
117
117
// scalastyle:on cyclomatic.complexity
118
118
119
- private def actionGridFS (action : BsonDocument , assertion : BsonDocument ) {
119
+ private def actionGridFS (action : BsonDocument , assertion : BsonDocument ): Unit = {
120
120
if (! action.isEmpty) {
121
121
action.getString(" operation" ).getValue match {
122
122
case " delete" => doDelete(action.getDocument(" arguments" ), assertion)
@@ -128,7 +128,7 @@ class GridFSSpec extends RequiresMongoDBISpec with FuturesSpec {
128
128
}
129
129
}
130
130
131
- private def doDelete (arguments : BsonDocument , assertion : BsonDocument ) {
131
+ private def doDelete (arguments : BsonDocument , assertion : BsonDocument ): Unit = {
132
132
val result = Try (gridFSBucket.map(_.delete(arguments.getObjectId(" id" ).getValue)).get.futureValue)
133
133
assertion.containsKey(" error" ) match {
134
134
case true => result should be a Symbol (" failure" )
@@ -168,7 +168,7 @@ class GridFSSpec extends RequiresMongoDBISpec with FuturesSpec {
168
168
}
169
169
}
170
170
171
- private def doDownloadByName (arguments : BsonDocument , assertion : BsonDocument ) {
171
+ private def doDownloadByName (arguments : BsonDocument , assertion : BsonDocument ): Unit = {
172
172
val outputStream : ByteArrayOutputStream = new ByteArrayOutputStream
173
173
val options : GridFSDownloadOptions = new GridFSDownloadOptions ()
174
174
Option (arguments.get(" options" )).map(opts => options.revision(opts.asDocument().getInt32(" revision" ).getValue))
@@ -187,7 +187,7 @@ class GridFSSpec extends RequiresMongoDBISpec with FuturesSpec {
187
187
}
188
188
189
189
// scalastyle:off method.length
190
- private def doUpload (rawArguments : BsonDocument , assertion : BsonDocument ) {
190
+ private def doUpload (rawArguments : BsonDocument , assertion : BsonDocument ): Unit = {
191
191
192
192
val arguments : BsonDocument = parseHexDocument(rawArguments, " source" )
193
193
0 commit comments