summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Rosen Penev2020-12-23 17:39:01 -0800
committerGravatar Nikias Bassen2022-04-22 16:57:24 +0200
commitc2e237ab5449b42461639c8e1eabbc61d0c386b7 (patch)
treefcf9de79d3e0cb69b78f384883a30a73b5553094 /src
parent1c7619d5d425816a8173c732ae47c1c2e588918b (diff)
downloadlibimobiledevice-glue-c2e237ab5449b42461639c8e1eabbc61d0c386b7.tar.gz
libimobiledevice-glue-c2e237ab5449b42461639c8e1eabbc61d0c386b7.tar.bz2
[clang-tidy] Do not use else after return/break/continue
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/utils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils.c b/src/utils.c
index 8e8bf79..9baef7e 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -241,9 +241,8 @@ LIBIMOBILEDEVICE_GLUE_API char *generate_uuid()
if (i == 8 || i == 13 || i == 18 || i == 23) {
uuid[i] = '-';
continue;
- } else {
- uuid[i] = chars[get_rand(0, 16)];
}
+ uuid[i] = chars[get_rand(0, 16)];
}
/* make it a real string */