Remove unncessary if glog.Is(0) condition
glog.Is(0) is the lowest loglevel, so the if statement is not
necessary. This patch removes it.
@@ -302,13 +302,11 @@ func extractGitSource(ctx context.Context, gitClient GitClient, gitSource *build
}
}
- if glog.Is(0) {
if information, gitErr := gitClient.GetInfo(dir); len(gitErr) == 0 {
glog.Infof("\tCommit:\t%s (%s)\n", information.CommitID, information.Message)
glog.Infof("\tAuthor:\t%s <%s>\n", information.AuthorName, information.AuthorEmail)
glog.Infof("\tDate:\t%s\n", information.Date)
}
- }
return true, nil
}
