Skip to content

Commit

Permalink
commands: Apply Golint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalcraftsman committed Mar 24, 2016
1 parent 5d3705d commit 7c81c86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commands/import_jekyll.go
Original file line number Diff line number Diff line change
Expand Up @@ -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/"):
Expand Down
3 changes: 2 additions & 1 deletion commands/undraft.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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 {
Expand Down

0 comments on commit 7c81c86

Please sign in to comment.