Skip to content

Commit

Permalink
fix(samples): missing fs requires causing sample-test to fail (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkwlui authored Aug 6, 2018
1 parent a25599b commit c58e0ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vision/samples/detect.v1p3beta1.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ function localizeObjectsGCS(uri) {
// [START vision_localize_objects_uri]
// Imports the Google Cloud client libraries
const vision = require('@google-cloud/vision').v1p3beta1;
const fs = require(`fs`);

// Creates a client
const client = new vision.ImageAnnotatorClient();
Expand Down Expand Up @@ -87,6 +86,7 @@ function detectHandwritingOCR(fileName) {
// [START vision_handwritten_ocr]
// Imports the Google Cloud client libraries
const vision = require('@google-cloud/vision').v1p3beta1;
const fs = require('fs');

// Creates a client
const client = new vision.ImageAnnotatorClient();
Expand Down Expand Up @@ -120,6 +120,7 @@ function detectHandwritingGCS(uri) {
// [START vision_handwritten_ocr_uri]
// Imports the Google Cloud client libraries
const vision = require('@google-cloud/vision').v1p3beta1;
const fs = require('fs');

// Creates a client
const client = new vision.ImageAnnotatorClient();
Expand Down

0 comments on commit c58e0ce

Please sign in to comment.