Skip to content

Commit 9221b11

Browse files
authored
Make RepositoryProvider readBytes public (#6138) [ci fast]
Signed-off-by: Paolo Di Tommaso <[email protected]>
1 parent 65580f0 commit 9221b11

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

modules/nextflow/src/main/groovy/nextflow/scm/LocalRepositoryProvider.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class LocalRepositoryProvider extends RepositoryProvider {
6969

7070

7171
@Override
72-
protected byte[] readBytes(String path) {
72+
byte[] readBytes(String path) {
7373

7474
final git = Git.open(new File(this.path, project))
7575
try {

modules/nextflow/src/main/groovy/nextflow/scm/RepositoryProvider.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ abstract class RepositoryProvider {
309309
* @param path The relative path of a file stored in the repository
310310
* @return The file content a
311311
*/
312-
abstract protected byte[] readBytes( String path )
312+
abstract byte[] readBytes( String path )
313313

314314
String readText( String path ) {
315315
def bytes = readBytes(path)

plugins/nf-codecommit/src/main/nextflow/cloud/aws/codecommit/AwsCodeCommitRepositoryProvider.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class AwsCodeCommitRepositoryProvider extends RepositoryProvider {
134134
// called by AssetManager
135135
// called by RepositoryProvider.readText()
136136
@Override
137-
protected byte[] readBytes( String path ) {
137+
byte[] readBytes( String path ) {
138138

139139
final request = new GetFileRequest()
140140
.withRepositoryName(repositoryName)

0 commit comments

Comments
 (0)