From 7c81c86bdde7d1d56bf92ce0f6edd29822a2d0de Mon Sep 17 00:00:00 2001 From: digitalcraftsman Date: Thu, 24 Mar 2016 23:34:12 +0100 Subject: [PATCH] commands: Apply Golint rules --- commands/import_jekyll.go | 2 +- commands/undraft.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/import_jekyll.go b/commands/import_jekyll.go index 25228c9f..26020b0f 100644 --- a/commands/import_jekyll.go +++ b/commands/import_jekyll.go @@ -108,7 +108,7 @@ func importFromJekyll(cmd *cobra.Command, args []string) error { } relPath = filepath.ToSlash(relPath) - var draft bool = false + draft := false switch { case strings.HasPrefix(relPath, "_posts/"): diff --git a/commands/undraft.go b/commands/undraft.go index c4bc2ffb..c9f2b24d 100644 --- a/commands/undraft.go +++ b/commands/undraft.go @@ -10,6 +10,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + package commands import ( @@ -31,7 +32,7 @@ If the content's draft status is 'False', nothing is done.`, RunE: Undraft, } -// Publish publishes the specified content by setting its draft status +// Undraft publishes the specified content by setting its draft status // to false and setting its publish date to now. If the specified content is // not a draft, it will log an error. func Undraft(cmd *cobra.Command, args []string) error { -- 2.30.2