Skip to content

Commit 404524e

Browse files
committed
remove strike-through section in syntax migration
1 parent 4536920 commit 404524e

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

sites/docs/src/content/docs/developing/migration-guides/strict-syntax.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -178,31 +178,6 @@ There is currently no clean solution for this case because of a conflict with nf
178178
For now, reimplement the code at each use of the function within a closure.
179179
:::
180180

181-
~~All functions should be converted to callable closures that are assigned to a parameter.
182-
For example, the following function:~~
183-
184-
```groovy
185-
def calculate_something(memory, time) {
186-
def output = null
187-
// function code
188-
return output
189-
}
190-
```
191-
192-
~~Becomes:~~
193-
194-
```groovy
195-
params.calculate_something = { memory, time ->
196-
def output = null
197-
// function code
198-
return output
199-
}
200-
```
201-
202-
~~Calling the function can then be done via `params.calculate_something(memory, time)` instead of `calculate_something(memory, time)`.~~
203-
204-
~~For a real-world example, see [nf-core/configs PR #1015](https://github.com/nf-core/configs/pull/1015/changes#diff-c60bd9c6097498d07b2f2eb3937b7d4ab3cb15e9167bacf80cb49c9848806e6fR117-R119).~~
205-
206181
### Basic if-statements
207182

208183
The strict syntax no longer allows full if-else statements, so you will see an error like this:

0 commit comments

Comments
 (0)