Skip to content

Commit d10dd58

Browse files
committed
Linting
1 parent 4cfd150 commit d10dd58

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

manifests/repo/apt.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@
7979
fail('gluster::repo::apt currently only works on Debian')
8080
}
8181
}
82-
if ! $arch {
82+
83+
unless $arch {
8384
fail("Architecture ${::architecture} not yet supported for ${::operatingsystem}.")
8485
}
8586

manifests/volume.pp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
Optional[Integer] $arbiter = undef,
5555
) {
5656

57-
if $force {
58-
$_force = 'force'
57+
$_force = if $force {
58+
'force'
5959
} else {
60-
$_force = ''
60+
''
6161
}
6262

6363
if $stripe {
@@ -66,10 +66,10 @@
6666
$_stripe = ''
6767
}
6868

69-
if $replica {
70-
$_replica = "replica ${replica}"
69+
$_replica = if $replica {
70+
"replica ${replica}"
7171
} else {
72-
$_replica = ''
72+
''
7373
}
7474

7575
$_transport = "transport ${transport}"

0 commit comments

Comments
 (0)