[libgit2-glib] Small code style cleanup in blame options
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] Small code style cleanup in blame options
- Date: Mon, 25 Nov 2013 11:05:08 +0000 (UTC)
commit 80047e2588dfd41de425711ae9a98683afee10a7
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Mon Nov 25 12:04:59 2013 +0100
Small code style cleanup in blame options
libgit2-glib/ggit-blame-options.c | 42 ++++++++++++------------------------
1 files changed, 14 insertions(+), 28 deletions(-)
---
diff --git a/libgit2-glib/ggit-blame-options.c b/libgit2-glib/ggit-blame-options.c
index 66cf376..121b028 100644
--- a/libgit2-glib/ggit-blame-options.c
+++ b/libgit2-glib/ggit-blame-options.c
@@ -150,10 +150,8 @@ ggit_blame_options_get_newest_commit (GgitBlameOptions *blame_options)
{
return NULL;
}
- else
- {
- return _ggit_oid_wrap (&blame_options->blame_options.newest_commit);
- }
+
+ return _ggit_oid_wrap (&blame_options->blame_options.newest_commit);
}
/**
@@ -177,10 +175,8 @@ ggit_blame_options_set_newest_commit (GgitBlameOptions *blame_options,
{
blame_options->blame_options.newest_commit = zero;
}
- else
- {
- blame_options->blame_options.newest_commit = *_ggit_oid_get_oid (oid);
- }
+
+ blame_options->blame_options.newest_commit = *_ggit_oid_get_oid (oid);
}
/**
@@ -202,10 +198,8 @@ ggit_blame_options_get_oldest_commit (GgitBlameOptions *blame_options)
{
return NULL;
}
- else
- {
- return _ggit_oid_wrap (&blame_options->blame_options.oldest_commit);
- }
+
+ return _ggit_oid_wrap (&blame_options->blame_options.oldest_commit);
}
/**
@@ -230,10 +224,8 @@ ggit_blame_options_set_oldest_commit (GgitBlameOptions *blame_options,
{
blame_options->blame_options.oldest_commit = zero;
}
- else
- {
- blame_options->blame_options.oldest_commit = *_ggit_oid_get_oid (oid);
- }
+
+ blame_options->blame_options.oldest_commit = *_ggit_oid_get_oid (oid);
}
/**
@@ -254,10 +246,8 @@ ggit_blame_options_get_minimum_line (GgitBlameOptions *blame_options)
{
return 1;
}
- else
- {
- return blame_options->blame_options.min_line;
- }
+
+ return blame_options->blame_options.min_line;
}
/**
@@ -295,10 +285,8 @@ ggit_blame_options_get_maximum_line (GgitBlameOptions *blame_options)
{
return 1;
}
- else
- {
- return blame_options->blame_options.max_line;
- }
+
+ return blame_options->blame_options.max_line;
}
/**
@@ -340,10 +328,8 @@ ggit_blame_options_get_minimum_match_characters (GgitBlameOptions *blame_options
{
return 20;
}
- else
- {
- return blame_options->blame_options.min_match_characters;
- }
+
+ return blame_options->blame_options.min_match_characters;
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]