Skip to content

Commit 1dc60cd

Browse files
committed
minor code style fixes
1 parent fb2e457 commit 1dc60cd

32 files changed

+44
-53
lines changed

HEADER.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22

33
biojava-adam BioJava and ADAM integration.
4-
Copyright (c) 2017-2021 held jointly by the individual authors.
4+
Copyright (c) 2017-2022 held jointly by the individual authors.
55

66
This library is free software; you can redistribute it and/or modify it
77
under the terms of the GNU Lesser General Public License as published

scripts/loadFastaDna.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
33
biojava-adam BioJava and ADAM integration.
4-
Copyright (c) 2017-2021 held jointly by the individual authors.
4+
Copyright (c) 2017-2022 held jointly by the individual authors.
55
66
This library is free software; you can redistribute it and/or modify it
77
under the terms of the GNU Lesser General Public License as published
@@ -34,7 +34,7 @@ val bac = BiojavaAdamContext(sc)
3434
val inputPath = Option(System.getenv("INPUT"))
3535
val outputPath = Option(System.getenv("OUTPUT"))
3636

37-
if (!inputPath.isDefined || !outputPath.isDefined) {
37+
if (inputPath.isEmpty || outputPath.isEmpty) {
3838
logger.error("INPUT and OUTPUT environment variables are required")
3939
System.exit(1)
4040
}

scripts/loadFastaProtein.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
33
biojava-adam BioJava and ADAM integration.
4-
Copyright (c) 2017-2021 held jointly by the individual authors.
4+
Copyright (c) 2017-2022 held jointly by the individual authors.
55
66
This library is free software; you can redistribute it and/or modify it
77
under the terms of the GNU Lesser General Public License as published
@@ -34,7 +34,7 @@ val bac = BiojavaAdamContext(sc)
3434
val inputPath = Option(System.getenv("INPUT"))
3535
val outputPath = Option(System.getenv("OUTPUT"))
3636

37-
if (!inputPath.isDefined || !outputPath.isDefined) {
37+
if (inputPath.isEmpty || outputPath.isEmpty) {
3838
logger.error("INPUT and OUTPUT environment variables are required")
3939
System.exit(1)
4040
}

scripts/loadFastaRna.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
33
biojava-adam BioJava and ADAM integration.
4-
Copyright (c) 2017-2021 held jointly by the individual authors.
4+
Copyright (c) 2017-2022 held jointly by the individual authors.
55
66
This library is free software; you can redistribute it and/or modify it
77
under the terms of the GNU Lesser General Public License as published
@@ -34,7 +34,7 @@ val bac = BiojavaAdamContext(sc)
3434
val inputPath = Option(System.getenv("INPUT"))
3535
val outputPath = Option(System.getenv("OUTPUT"))
3636

37-
if (!inputPath.isDefined || !outputPath.isDefined) {
37+
if (inputPath.isEmpty || outputPath.isEmpty) {
3838
logger.error("INPUT and OUTPUT environment variables are required")
3939
System.exit(1)
4040
}

scripts/loadFastqReads.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
33
biojava-adam BioJava and ADAM integration.
4-
Copyright (c) 2017-2021 held jointly by the individual authors.
4+
Copyright (c) 2017-2022 held jointly by the individual authors.
55
66
This library is free software; you can redistribute it and/or modify it
77
under the terms of the GNU Lesser General Public License as published
@@ -34,7 +34,7 @@ val bac = BiojavaAdamContext(sc)
3434
val inputPath = Option(System.getenv("INPUT"))
3535
val outputPath = Option(System.getenv("OUTPUT"))
3636

37-
if (!inputPath.isDefined || !outputPath.isDefined) {
37+
if (inputPath.isEmpty || outputPath.isEmpty) {
3838
logger.error("INPUT and OUTPUT environment variables are required")
3939
System.exit(1)
4040
}

scripts/loadGenbankDna.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
33
biojava-adam BioJava and ADAM integration.
4-
Copyright (c) 2017-2021 held jointly by the individual authors.
4+
Copyright (c) 2017-2022 held jointly by the individual authors.
55
66
This library is free software; you can redistribute it and/or modify it
77
under the terms of the GNU Lesser General Public License as published
@@ -34,7 +34,7 @@ val bac = BiojavaAdamContext(sc)
3434
val inputPath = Option(System.getenv("INPUT"))
3535
val outputPath = Option(System.getenv("OUTPUT"))
3636

37-
if (!inputPath.isDefined || !outputPath.isDefined) {
37+
if (inputPath.isEmpty || outputPath.isEmpty) {
3838
logger.error("INPUT and OUTPUT environment variables are required")
3939
System.exit(1)
4040
}

scripts/loadGenbankDnaFeatures.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
33
biojava-adam BioJava and ADAM integration.
4-
Copyright (c) 2017-2021 held jointly by the individual authors.
4+
Copyright (c) 2017-2022 held jointly by the individual authors.
55
66
This library is free software; you can redistribute it and/or modify it
77
under the terms of the GNU Lesser General Public License as published
@@ -34,7 +34,7 @@ val bac = BiojavaAdamContext(sc)
3434
val inputPath = Option(System.getenv("INPUT"))
3535
val outputPath = Option(System.getenv("OUTPUT"))
3636

37-
if (!inputPath.isDefined || !outputPath.isDefined) {
37+
if (inputPath.isEmpty || outputPath.isEmpty) {
3838
logger.error("INPUT and OUTPUT environment variables are required")
3939
System.exit(1)
4040
}

scripts/loadGenbankProtein.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
33
biojava-adam BioJava and ADAM integration.
4-
Copyright (c) 2017-2021 held jointly by the individual authors.
4+
Copyright (c) 2017-2022 held jointly by the individual authors.
55
66
This library is free software; you can redistribute it and/or modify it
77
under the terms of the GNU Lesser General Public License as published
@@ -34,7 +34,7 @@ val bac = BiojavaAdamContext(sc)
3434
val inputPath = Option(System.getenv("INPUT"))
3535
val outputPath = Option(System.getenv("OUTPUT"))
3636

37-
if (!inputPath.isDefined || !outputPath.isDefined) {
37+
if (inputPath.isEmpty || outputPath.isEmpty) {
3838
logger.error("INPUT and OUTPUT environment variables are required")
3939
System.exit(1)
4040
}

scripts/loadGenbankProteinFeatures.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
33
biojava-adam BioJava and ADAM integration.
4-
Copyright (c) 2017-2021 held jointly by the individual authors.
4+
Copyright (c) 2017-2022 held jointly by the individual authors.
55
66
This library is free software; you can redistribute it and/or modify it
77
under the terms of the GNU Lesser General Public License as published
@@ -34,7 +34,7 @@ val bac = BiojavaAdamContext(sc)
3434
val inputPath = Option(System.getenv("INPUT"))
3535
val outputPath = Option(System.getenv("OUTPUT"))
3636

37-
if (!inputPath.isDefined || !outputPath.isDefined) {
37+
if (inputPath.isEmpty || outputPath.isEmpty) {
3838
logger.error("INPUT and OUTPUT environment variables are required")
3939
System.exit(1)
4040
}

scripts/loadGenbankRna.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
33
biojava-adam BioJava and ADAM integration.
4-
Copyright (c) 2017-2021 held jointly by the individual authors.
4+
Copyright (c) 2017-2022 held jointly by the individual authors.
55
66
This library is free software; you can redistribute it and/or modify it
77
under the terms of the GNU Lesser General Public License as published
@@ -34,7 +34,7 @@ val bac = BiojavaAdamContext(sc)
3434
val inputPath = Option(System.getenv("INPUT"))
3535
val outputPath = Option(System.getenv("OUTPUT"))
3636

37-
if (!inputPath.isDefined || !outputPath.isDefined) {
37+
if (inputPath.isEmpty || outputPath.isEmpty) {
3838
logger.error("INPUT and OUTPUT environment variables are required")
3939
System.exit(1)
4040
}

0 commit comments

Comments
 (0)